diff options
author | D G Turner | 2011-12-05 15:06:58 +0000 |
---|---|---|
committer | D G Turner | 2011-12-05 15:06:58 +0000 |
commit | 5f992234deb2e0348126fb3f76907b8a586c90be (patch) | |
tree | 233deae287a494240f44bbbc0dec143489508a8a /engines/dreamweb/vgagrafx.cpp | |
parent | cc59b8511715005772f967bd655371b809159907 (diff) | |
download | scummvm-rg350-5f992234deb2e0348126fb3f76907b8a586c90be.tar.gz scummvm-rg350-5f992234deb2e0348126fb3f76907b8a586c90be.tar.bz2 scummvm-rg350-5f992234deb2e0348126fb3f76907b8a586c90be.zip |
DREAMWEB: Modified 'showPCX' to allow passing of file name string.
This will allow migration of fixing string values in the cs segment.
Diffstat (limited to 'engines/dreamweb/vgagrafx.cpp')
-rw-r--r-- | engines/dreamweb/vgagrafx.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp index 847aa08bed..e7efc22bf3 100644 --- a/engines/dreamweb/vgagrafx.cpp +++ b/engines/dreamweb/vgagrafx.cpp @@ -219,8 +219,7 @@ static Common::String getFilename(Context &context) { return name; } -void DreamGenContext::showPCX() { - Common::String name = getFilename(*this); +void DreamGenContext::showPCX(::Common::String name) { Common::File pcxFile; if (!pcxFile.open(name)) { @@ -289,6 +288,10 @@ void DreamGenContext::showPCX() { pcxFile.close(); } +void DreamGenContext::showPCX() { + showPCX(getFilename(*this)); +} + void DreamGenContext::frameOutV(uint8 *dst, const uint8 *src, uint16 pitch, uint16 width, uint16 height, int16 x, int16 y) { // NB : These resilience checks were not in the original engine, but did they result in undefined behaviour // or was something broken during porting to C++? |