X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui.cpp;h=2305ea6e7eb3f10bc76fb82030829c5249f6667f;hb=43a80363f784b8dc10e438024149da0d993c7eca;hp=640b70fcf213f2572d1f16ead9939acfc65659be;hpb=27ad8041c00ff80e50ba0ad9022c3eaa7a05b8b0;p=thunder diff --git a/src/gui.cpp b/src/gui.cpp index 640b70f..2305ea6 100755 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -1,9 +1,14 @@ // // Thunder Graphic User Interface -// v1.0 (Last build: 8/1/1998) // -// by Jimmy Hamm -// (C) 1998 Underground Software +// by James L. Hammons +// (c) 2004, 2009 Underground Software +// +// JLH = James L. Hammons +// +// WHO WHEN WHAT +// --- ---------- ------------------------------------------------------------ +// JLH 07/23/2009 Added changelog ;-) // #include @@ -119,7 +124,7 @@ BYTE bn0[] = { 0,1,0,0,1,0, 0,1,0,0,1,0, 0,0,1,1,0,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; BYTE bn1[] = { 0,0,0,0,0,0, @@ -128,7 +133,7 @@ BYTE bn1[] = { 0,0,1,0,0,0, 0,0,1,0,0,0, 0,1,1,1,0,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; BYTE bn2[] = { 0,0,0,0,0,0, @@ -137,7 +142,7 @@ BYTE bn2[] = { 0,0,1,1,0,0, 0,1,0,0,0,0, 0,1,1,1,1,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; BYTE bn3[] = { 0,0,0,0,0,0, @@ -146,7 +151,7 @@ BYTE bn3[] = { 0,1,1,1,0,0, 0,0,0,0,1,0, 0,1,1,1,0,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; BYTE bn4[] = { 0,0,0,0,0,0, @@ -155,7 +160,7 @@ BYTE bn4[] = { 0,1,0,1,0,0, 0,1,1,1,1,0, 0,0,0,1,0,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; BYTE bn5[] = { 0,0,0,0,0,0, @@ -164,7 +169,7 @@ BYTE bn5[] = { 0,1,1,1,0,0, 0,0,0,0,1,0, 0,1,1,1,0,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; BYTE bn6[] = { 0,0,0,0,0,0, @@ -173,7 +178,7 @@ BYTE bn6[] = { 0,1,1,1,0,0, 0,1,0,0,1,0, 0,0,1,1,0,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; BYTE bn7[] = { 0,0,0,0,0,0, @@ -182,7 +187,7 @@ BYTE bn7[] = { 0,0,0,1,0,0, 0,0,1,0,0,0, 0,0,1,0,0,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; BYTE bn8[] = { 0,0,0,0,0,0, @@ -191,7 +196,7 @@ BYTE bn8[] = { 0,0,1,1,0,0, 0,1,0,0,1,0, 0,0,1,1,0,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; BYTE bn9[] = { 0,0,0,0,0,0, @@ -200,7 +205,7 @@ BYTE bn9[] = { 0,0,1,1,1,0, 0,0,0,0,1,0, 0,0,1,1,0,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; BYTE bnA[] = { 0,0,0,0,0,0, @@ -209,7 +214,7 @@ BYTE bnA[] = { 0,1,1,1,1,0, 0,1,0,0,1,0, 0,1,0,0,1,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; BYTE bnB[] = { 0,0,0,0,0,0, @@ -218,7 +223,7 @@ BYTE bnB[] = { 0,1,1,1,0,0, 0,1,0,0,1,0, 0,1,1,1,0,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; BYTE bnC[] = { 0,0,0,0,0,0, @@ -227,7 +232,7 @@ BYTE bnC[] = { 0,1,0,0,0,0, 0,1,0,0,1,0, 0,0,1,1,0,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; BYTE bnD[] = { 0,0,0,0,0,0, @@ -236,7 +241,7 @@ BYTE bnD[] = { 0,1,0,0,1,0, 0,1,0,0,1,0, 0,1,1,1,0,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; BYTE bnE[] = { 0,0,0,0,0,0, @@ -245,7 +250,7 @@ BYTE bnE[] = { 0,1,1,1,1,0, 0,1,0,0,0,0, 0,1,1,1,1,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; BYTE bnF[] = { 0,0,0,0,0,0, @@ -254,7 +259,7 @@ BYTE bnF[] = { 0,1,1,1,0,0, 0,1,0,0,0,0, 0,1,0,0,0,0, - 0,0,0,0,0,0 + 0,0,0,0,0,0 }; // @@ -504,7 +509,7 @@ void DrawDipswitch(void) if (b) my_scr[scadr+xx+yy*320] = b; } } - for(int i=0; i<16; i++) + for(int i=0; i<16; i++) { scadr = dbase + (5*320+5) + i*7*320; if (i>7) scadr += 17*320; // Adjust for DSW #2 @@ -514,7 +519,7 @@ void DrawDipswitch(void) { for(int xx=0; xx<5; xx++) { - my_scr[scadr++] = idsbutton[bmpptr++]; + my_scr[scadr++] = idsbutton[bmpptr++]; } scadr += 315; // Adjust position... } @@ -575,7 +580,7 @@ void DrawGUI(void) if (!user_selected_something) // i.e. we're not inside a selection... { DrawSmallIcons(selection); // 'selection' is icon *not* to draw - DrawLargeIcon(selection); + DrawLargeIcon(selection); } else { @@ -720,7 +725,7 @@ BYTE UserSelectedSomething(void) //SpawnSound(USERSOUND, SBLAH); user_selected_something = true; dswitch = 0; // Set at first dipswitch - } + } if (selection == OPTIONS) // Edit emulator settings { } @@ -729,7 +734,7 @@ BYTE UserSelectedSomething(void) } if (selection == SNAPSHOT) // Snapshot { - SpawnSound(USERSOUND, SCAMERA); + SpawnSound(USERSOUND, SCAMERA); SnapPCX(screen); } if (selection == RESET) // Reset machine