aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/graphics.cpp')
-rw-r--r--engines/mads/graphics.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/engines/mads/graphics.cpp b/engines/mads/graphics.cpp
index 267785b76b..f4d788fea5 100644
--- a/engines/mads/graphics.cpp
+++ b/engines/mads/graphics.cpp
@@ -26,5 +26,23 @@
namespace MADS {
+void ScreenSurface::init() {
+ setSize(g_system->getWidth(), g_system->getHeight());
+}
+
+void ScreenSurface::updateScreen() {
+ g_system->copyRectToScreen((const byte *)pixels, pitch, 0, 0, w, h);
+ g_system->updateScreen();
+}
+
+void ScreenSurface::transition(bool transitionFlag, bool surfaceFlag) {
+
+}
+
+void ScreenSurface::setPointer(MSurface *s) {
+ _pixels = s->getData();
+ _pitch = s->w;
+}
+
} // End of namespace MADS