From 0f8a091597092f7efc308f4d20a3d09c648fcb2a Mon Sep 17 00:00:00 2001 From: uruk Date: Sat, 13 Jul 2013 13:02:12 +0200 Subject: AVALANCHE: Update Lucerna::load(), update makefile, increase screen height (in Graph). --- engines/avalanche/graph.h | 2 +- engines/avalanche/lucerna2.cpp | 3 ++- engines/avalanche/module.mk | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/avalanche') diff --git a/engines/avalanche/graph.h b/engines/avalanche/graph.h index 24fffcc149..559e78cb6f 100644 --- a/engines/avalanche/graph.h +++ b/engines/avalanche/graph.h @@ -38,7 +38,7 @@ class AvalancheEngine; class Graph { public: static const int16 _screenWidth = 640; - static const int16 _screenHeight = 200; + static const int16 _screenHeight = 400; diff --git a/engines/avalanche/lucerna2.cpp b/engines/avalanche/lucerna2.cpp index 6cd99b5bca..493d114b39 100644 --- a/engines/avalanche/lucerna2.cpp +++ b/engines/avalanche/lucerna2.cpp @@ -251,7 +251,8 @@ void Lucerna::load(byte n) { /* Load2, actually */ byte pixel = f.readByte(); for (byte i = 0; i < 8; i++) { byte pixelBit = (pixel >> i) & 1; - *(byte *)background.getBasePtr(x + 7 - i, y) += (pixelBit << plane); + for (byte j = 0; j < 2; j++) // We draw every line twice to reach 400 picture height. + *(byte *)background.getBasePtr(x + 7 - i, y * 2 + j) += (pixelBit << plane); } } diff --git a/engines/avalanche/module.mk b/engines/avalanche/module.mk index ff5bc61e96..222482e406 100644 --- a/engines/avalanche/module.mk +++ b/engines/avalanche/module.mk @@ -2,6 +2,7 @@ MODULE := engines/avalanche MODULE_OBJS = \ avalanche.o \ + graph.o \ avalot.o \ console.o \ detection.o \ -- cgit v1.2.3