aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/pscr.cpp
diff options
context:
space:
mode:
authorlukaslw2014-06-09 20:32:39 +0200
committerlukaslw2014-06-22 20:08:53 +0200
commitca6f59217f8cd2f55daae670cbe3c085820e88d1 (patch)
treeb2f48df741a04303b015808b8f3b2b60eb7db7b1 /engines/prince/pscr.cpp
parent8f98d80f4eec40e93977fda2315f09a59a722960 (diff)
downloadscummvm-rg350-ca6f59217f8cd2f55daae670cbe3c085820e88d1.tar.gz
scummvm-rg350-ca6f59217f8cd2f55daae670cbe3c085820e88d1.tar.bz2
scummvm-rg350-ca6f59217f8cd2f55daae670cbe3c085820e88d1.zip
PRINCE: PScr class - clean up
Diffstat (limited to 'engines/prince/pscr.cpp')
-rw-r--r--engines/prince/pscr.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/prince/pscr.cpp b/engines/prince/pscr.cpp
index 7402e46e43..ea6de2a5b6 100644
--- a/engines/prince/pscr.cpp
+++ b/engines/prince/pscr.cpp
@@ -44,13 +44,9 @@ PScr::~PScr() {
}
void PScr::loadSurface(Common::SeekableReadStream &stream) {
- //stream.skip(4);
- int x = stream.readUint16LE();
- int y = stream.readUint16LE();
+ stream.skip(4);
int width = stream.readUint16LE();
int height = stream.readUint16LE();
- debug("x: %d, y: %d", x, y);
- debug("w: %d, h: %d", width, height);
_surface = new Graphics::Surface();
_surface->create(width, height, Graphics::PixelFormat::createFormatCLUT8());
@@ -87,4 +83,4 @@ bool PScr::loadFromStream(Common::SeekableReadStream &stream) {
return true;
}
-} \ No newline at end of file
+}