diff options
author | Einar Johan Trøan Sømåen | 2012-07-23 01:08:57 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-23 01:08:57 +0200 |
commit | 93864d4e39f6335684bee9d8dc291ce9af32ca7b (patch) | |
tree | d25bde266ef44ddc0e169d90b6401ef621532fcf /engines/wintermute/base/gfx/osystem | |
parent | 61e011ada98f780d28bbea53f3c702f2bb3ed2bd (diff) | |
download | scummvm-rg350-93864d4e39f6335684bee9d8dc291ce9af32ca7b.tar.gz scummvm-rg350-93864d4e39f6335684bee9d8dc291ce9af32ca7b.tar.bz2 scummvm-rg350-93864d4e39f6335684bee9d8dc291ce9af32ca7b.zip |
WINTERMUTE: Remove Base as superclass for BaseImage
Diffstat (limited to 'engines/wintermute/base/gfx/osystem')
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | 2 | ||||
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp index ec69a80095..24e3ddb0ae 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp @@ -561,7 +561,7 @@ bool BaseRenderOSystem::drawLine(int x1, int y1, int x2, int y2, uint32 color) { BaseImage *BaseRenderOSystem::takeScreenshot() {
// TODO: Fix this
warning("BaseRenderOSystem::TakeScreenshot() - not ported yet");
- BaseImage *screenshot = new BaseImage(_gameRef);
+ BaseImage *screenshot = new BaseImage(_gameRef->_fileManager);
screenshot->copyFrom(_renderSurface);
return screenshot;
#if 0
diff --git a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp index 772f7c35ba..c8cbe99f73 100644 --- a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp @@ -117,7 +117,7 @@ bool BaseSurfaceOSystem::create(const char *filename, bool defaultCK, byte ckRed }
bool BaseSurfaceOSystem::finishLoad() {
- BaseImage *image = new BaseImage(_gameRef);
+ BaseImage *image = new BaseImage(_gameRef->_fileManager);
if (!image->loadFile(_filename)) {
return false;
}
|