LAB: Remove superfluous image buffers
This commit is contained in:
parent
93b2e413fd
commit
5cc3d3b682
1 changed files with 7 additions and 15 deletions
|
@ -61,7 +61,7 @@ static TextFont bmfont;
|
||||||
static char *journaltext, *journaltexttitle;
|
static char *journaltext, *journaltexttitle;
|
||||||
static uint16 JPage = 0;
|
static uint16 JPage = 0;
|
||||||
static bool lastpage = false;
|
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 uint16 JGadX[3] = { 80, 144, 194 }, JGadY[3] = { 162, 164, 162 };
|
||||||
static Gadget ForwardG, CancelG, BackG;
|
static Gadget ForwardG, CancelG, BackG;
|
||||||
static bool GotBackImage = false;
|
static bool GotBackImage = false;
|
||||||
|
@ -602,24 +602,16 @@ static bool loadJournalData() {
|
||||||
if (!buffer)
|
if (!buffer)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
readImage(buffer, &JLeft);
|
readImage(buffer, &(BackG.Im));
|
||||||
readImage(buffer, &JLeftAlt);
|
readImage(buffer, &(BackG.ImAlt));
|
||||||
readImage(buffer, &JRight);
|
readImage(buffer, &(ForwardG.Im));
|
||||||
readImage(buffer, &JRightAlt);
|
readImage(buffer, &(ForwardG.ImAlt));
|
||||||
readImage(buffer, &JCancel);
|
readImage(buffer, &(CancelG.Im));
|
||||||
readImage(buffer, &JCancelAlt);
|
readImage(buffer, &(CancelG.ImAlt));
|
||||||
|
|
||||||
BackG.Im = JLeft;
|
|
||||||
BackG.ImAlt = JLeftAlt;
|
|
||||||
BackG.KeyEquiv = VKEY_LTARROW;
|
BackG.KeyEquiv = VKEY_LTARROW;
|
||||||
|
|
||||||
ForwardG.Im = JRight;
|
|
||||||
ForwardG.ImAlt = JRightAlt;
|
|
||||||
ForwardG.KeyEquiv = VKEY_RTARROW;
|
ForwardG.KeyEquiv = VKEY_RTARROW;
|
||||||
|
|
||||||
CancelG.Im = JCancel;
|
|
||||||
CancelG.ImAlt = JCancelAlt;
|
|
||||||
|
|
||||||
counter = 0;
|
counter = 0;
|
||||||
|
|
||||||
while (TopGadget) {
|
while (TopGadget) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue