aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/lab/special.cpp22
1 files changed, 7 insertions, 15 deletions
diff --git a/engines/lab/special.cpp b/engines/lab/special.cpp
index 2c0a488003..7e8bc96c88 100644
--- a/engines/lab/special.cpp
+++ b/engines/lab/special.cpp
@@ -61,7 +61,7 @@ static TextFont bmfont;
static char *journaltext, *journaltexttitle;
static uint16 JPage = 0;
static bool lastpage = false;
-static Image *JCancel, *JCancelAlt, *JLeft, *JLeftAlt, *JRight, *JRightAlt, JBackImage, ScreenImage;
+static Image JBackImage, ScreenImage;
static uint16 JGadX[3] = { 80, 144, 194 }, JGadY[3] = { 162, 164, 162 };
static Gadget ForwardG, CancelG, BackG;
static bool GotBackImage = false;
@@ -602,24 +602,16 @@ static bool loadJournalData() {
if (!buffer)
return false;
- readImage(buffer, &JLeft);
- readImage(buffer, &JLeftAlt);
- readImage(buffer, &JRight);
- readImage(buffer, &JRightAlt);
- readImage(buffer, &JCancel);
- readImage(buffer, &JCancelAlt);
+ readImage(buffer, &(BackG.Im));
+ readImage(buffer, &(BackG.ImAlt));
+ readImage(buffer, &(ForwardG.Im));
+ readImage(buffer, &(ForwardG.ImAlt));
+ readImage(buffer, &(CancelG.Im));
+ readImage(buffer, &(CancelG.ImAlt));
- BackG.Im = JLeft;
- BackG.ImAlt = JLeftAlt;
BackG.KeyEquiv = VKEY_LTARROW;
-
- ForwardG.Im = JRight;
- ForwardG.ImAlt = JRightAlt;
ForwardG.KeyEquiv = VKEY_RTARROW;
- CancelG.Im = JCancel;
- CancelG.ImAlt = JCancelAlt;
-
counter = 0;
while (TopGadget) {