aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNicola Mettifogo2009-03-21 15:01:46 +0000
committerNicola Mettifogo2009-03-21 15:01:46 +0000
commit8f57c621d2e99c7eef2541d902747020f5d5391a (patch)
tree010eb21de4c19558f525adfb53c8744521ea5369 /engines
parent14e27934499dc8ef2a31bee14a8e169c8cdff009 (diff)
downloadscummvm-rg350-8f57c621d2e99c7eef2541d902747020f5d5391a.tar.gz
scummvm-rg350-8f57c621d2e99c7eef2541d902747020f5d5391a.tar.bz2
scummvm-rg350-8f57c621d2e99c7eef2541d902747020f5d5391a.zip
Some Surface tinkering, and added TODO's about it.
svn-id: r39585
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/disk_br.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp
index a587a29411..dd07ccd303 100644
--- a/engines/parallaction/disk_br.cpp
+++ b/engines/parallaction/disk_br.cpp
@@ -486,10 +486,11 @@ void AmigaDisk_br::loadBackground(BackgroundInfo& info, const char *filename) {
stream = openFile("backs/" + Common::String(filename), ".bkg");
ILBMDecoder decoder(stream, true);
+ // TODO: encapsulate surface creation
info.bg.w = decoder.getWidth();
info.bg.h = decoder.getHeight();
info.bg.pitch = info.bg.w;
-
+ info.bg.bytesPerPixel = 1;
info.bg.pixels = decoder.getBitmap();
assert(info.bg.pixels);
@@ -594,9 +595,11 @@ GfxObj* AmigaDisk_br::loadStatic(const char* name) {
Graphics::Surface* surf = new Graphics::Surface;
assert(surf);
+ // TODO: encapsulate surface creation
surf->w = decoder.getWidth();
surf->h = decoder.getHeight();
surf->pitch = surf->w;
+ surf->bytesPerPixel = 1;
surf->pixels = decoder.getBitmap();
assert(surf->pixels);