aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ps2/systemps2.cpp
diff options
context:
space:
mode:
authorMax Lingua2009-03-06 00:21:06 +0000
committerMax Lingua2009-03-06 00:21:06 +0000
commit6d870649507594a87c40d8fae0f5aa204d0b4520 (patch)
tree1305cadbe11e73544fd0d2c534bd07382c70f0c0 /backends/platform/ps2/systemps2.cpp
parent865b213439d624b5eced128ffa3eb6a318ab37b7 (diff)
downloadscummvm-rg350-6d870649507594a87c40d8fae0f5aa204d0b4520.tar.gz
scummvm-rg350-6d870649507594a87c40d8fae0f5aa204d0b4520.tar.bz2
scummvm-rg350-6d870649507594a87c40d8fae0f5aa204d0b4520.zip
Implemented _overlayFormat in Gs2dScreen
Modified PS2FSNode openForReading -> createReadStream openForWriting -> createWriteStream Started Common::EventManager *OSystem::getEventManager() on backend side... svn-id: r39141
Diffstat (limited to 'backends/platform/ps2/systemps2.cpp')
-rw-r--r--backends/platform/ps2/systemps2.cpp28
1 files changed, 23 insertions, 5 deletions
diff --git a/backends/platform/ps2/systemps2.cpp b/backends/platform/ps2/systemps2.cpp
index 5b24f5bb3e..1a69e5377a 100644
--- a/backends/platform/ps2/systemps2.cpp
+++ b/backends/platform/ps2/systemps2.cpp
@@ -327,6 +327,7 @@ OSystem_PS2::OSystem_PS2(const char *elfPath) {
void OSystem_PS2::init(void) {
sioprintf("Timer...\n");
_scummTimerManager = new DefaultTimerManager();
+ _scummEventManager = new DefaultEventManager();
_scummMixer = new Audio::MixerImpl(this);
_scummMixer->setOutputRate(44100);
_scummMixer->setReady(true);
@@ -574,6 +575,10 @@ Common::TimerManager *OSystem_PS2::getTimerManager() {
return _scummTimerManager;
}
+Common::EventManager *OSystem_PS2::getEventManager() {
+ return _scummEventManager;
+}
+
Audio::Mixer *OSystem_PS2::getMixer() {
return _scummMixer;
}
@@ -643,11 +648,24 @@ void OSystem_PS2::copyRectToOverlay(const OverlayColor *buf, int pitch, int x, i
_screen->copyOverlayRect((uint16*)buf, (uint16)pitch, (uint16)x, (uint16)y, (uint16)w, (uint16)h);
}
+Graphics::PixelFormat OSystem_PS2::getOverlayFormat(void) const {
+ return _screen->getOverlayFormat();
+}
+
+
+int16 OSystem_PS2::getOverlayWidth(void) {
+ return _screen->getOverlayWidth();
+}
+
+int16 OSystem_PS2::getOverlayHeight(void) {
+ return _screen->getOverlayHeight();
+}
+
Graphics::Surface *OSystem_PS2::lockScreen() {
return _screen->lockScreen();
}
-void OSystem_PS2::unlockScreen() {
+void OSystem_PS2::unlockScreen(void) {
_screen->unlockScreen();
}
@@ -945,12 +963,12 @@ void OSystem_PS2::makeConfigPath() {
_configFile = strdup(path);
}
-Common::SeekableReadStream *OSystem_PS2::openConfigFileForReading() {
+Common::SeekableReadStream *OSystem_PS2::createConfigReadStream() {
Common::FSNode file(_configFile);
- return file.openForReading();
+ return file.createReadStream();
}
-Common::WriteStream *OSystem_PS2::openConfigFileForWriting() {
+Common::WriteStream *OSystem_PS2::createConfigWriteStream() {
Common::FSNode file(_configFile);
- return file.openForWriting();
+ return file.createWriteStream();
}