diff options
author | Einar Johan Trøan Sømåen | 2012-07-30 19:41:44 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-30 19:41:44 +0200 |
commit | 43611724441e880b7283ae195d40f5e63aa6affd (patch) | |
tree | c2eae21a19c8472321d1454a61e4f19a34054a80 /engines/wintermute/base/gfx/osystem | |
parent | 85ce9340bcb425a6c5e8dbcacff5a7fa2fb4c817 (diff) | |
download | scummvm-rg350-43611724441e880b7283ae195d40f5e63aa6affd.tar.gz scummvm-rg350-43611724441e880b7283ae195d40f5e63aa6affd.tar.bz2 scummvm-rg350-43611724441e880b7283ae195d40f5e63aa6affd.zip |
WINTERMUTE: Redraw ONLY the indicator when saving/loading.
Diffstat (limited to 'engines/wintermute/base/gfx/osystem')
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | 7 | ||||
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.h | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp index fa0663dc65..bc952b0b36 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp @@ -185,7 +185,12 @@ void BaseRenderOSystem::setColorMod(byte r, byte g, byte b) { _colorMod = BS_ARGB(alpha, r, g, b);
}
-//////////////////////////////////////////////////////////////////////////
+bool BaseRenderOSystem::indicatorFlip() {
+ g_system->copyRectToScreen((byte *)_renderSurface->getBasePtr(_indicatorX, _indicatorY), _renderSurface->pitch, _indicatorX, _indicatorY, _indicatorWidthDrawn, _indicatorHeight);
+ g_system->updateScreen();
+ return STATUS_OK;
+}
+
bool BaseRenderOSystem::flip() {
if (!_disableDirtyRects) {
drawTickets();
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.h b/engines/wintermute/base/gfx/osystem/base_render_osystem.h index 2b6b5943c2..08fd6cf9ab 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.h +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.h @@ -66,6 +66,7 @@ public: bool initRenderer(int width, int height, bool windowed);
bool flip();
+ virtual bool indicatorFlip();
bool fill(byte r, byte g, byte b, Common::Rect *rect = NULL);
Graphics::PixelFormat getPixelFormat() const;
void fade(uint16 alpha);
|