- uint8_t * iconmem;
- uint8_t xl, yl;
- uint8_t * lIcons[11] = { inoguib, icoinub, ipl1stb, ipl2stb, ii30hzb, ii60hzb,
- idipswb, ikeycnb, isnapsb, iresetb, ibyebyb };
- uint8_t xlens[11] = { 44, 45, 50, 52, 59, 59, 42, 45, 48, 58, 42 };
- uint8_t ylens[11] = { 44, 40, 33, 29, 52, 52, 34, 45, 37, 40, 50 };
-
- uint8_t gsubs1[24] = { 21, 21, 20, 19, 168, 168, 31, 155, 68, 68, 67, 66,
- 36, 36, 35, 34, 188, 188, 183, 181, 81, 81, 85, 80 },
- gsubs2[24] = { 20, 20, 19, 19, 31, 31, 155, 155, 67, 67, 66, 66,
- 35, 35, 34, 34, 183, 183, 181, 181, 85, 85, 80, 80 },
- gsubs3[24] = { 35, 34, 188, 188, 183, 181, 81, 81, 85, 80, 21, 21,
- 20, 19, 168, 168, 31, 155, 68, 68, 67, 66, 36, 36 },
- gsubs4[24] = { 34, 34, 183, 183, 181, 181, 85, 85, 80, 80, 20, 20,
- 19, 19, 31, 31, 155, 155, 67, 67, 66, 66, 35, 35 },
- gsubs5[24] = { 20, 20, 183, 183, 31, 31, 85, 85, 67, 67, 20, 20,
- 35, 35, 31, 31, 183, 183, 67, 67, 85, 85, 35, 35 };
-
- iconmem = lIcons[icon];
- xl = xlens[icon]; yl = ylens[icon];
- if (icon == OPTIONS)
- {
- iconmem = boptions;
- xl = 35; yl = 9;
- }
- if ((icon == REFRESH) && game_refresh)
- {
- iconmem = lIcons[5];
- xl = xlens[5]; yl = ylens[5];
- }
- if (icon == DIPSWITCH)
- {
- iconmem = lIcons[6];
- xl = xlens[6]; yl = ylens[6];
- }
-
- uint32_t scadr = hScrollOffset + voffsets[vScrollOffset];
- scadr += 320*((224-yl)/2); // Center vertically
- scadr += (288-xl)/2; // Center horizontally
- uint16_t bmpptr = 0;
-
- for(int yy=0; yy<yl; yy++)
- {
- for(int xx=0; xx<xl; xx++)
- {
- uint8_t b = iconmem[bmpptr++];
- if (b)
- {
- if ((icon == PL1START) && (b == 235) && (num_coins) && !blink_on)
- b = 125; // Light ON color
-/*noguib: 44x44 [Green (hi/lo): 36/235 Orange: 168/31 Neutral:12]
- Rainbow (ROYGBP, hi/med/lo): 21,20,19; 168, 31,155; 68,67,66;
- 36,35,34; 188,183,181; 81,85,80 */
- if (icon == NOGUI)
- {
- uint8_t fln = (23 - flash) + 1; // Want to go forward (maybe fix it?)
- switch (b)
- {
- case 36: { b = gsubs1[fln]; break; }
- case 235: { b = gsubs2[fln]; break; }
- case 168: { b = gsubs3[fln]; break; }
- case 31: { b = gsubs4[fln]; break; }
- case 12: { b = gsubs5[fln]; break; }
- }
- }
- if ((icon == REFRESH) && (iline == yy) && (b == 50)) b = 188;
- my_scr[scadr+xx+yy*320] = b;
- }
- }
- }
- if (!blink) // Should go here???
- {
- blink_on = !blink_on; // Switch blink state
- if (blink_on) blink = 12;
- else blink = 6;
- }
+ uint8_t * iconmem;
+ uint8_t xl, yl;
+ uint8_t * lIcons[11] = { inoguib, icoinub, ipl1stb, ipl2stb, ii30hzb,
+ ii60hzb, idipswb, ikeycnb, isnapsb, iresetb, ibyebyb };
+ uint8_t xlens[11] = { 44, 45, 50, 52, 59, 59, 42, 45, 48, 58, 42 };
+ uint8_t ylens[11] = { 44, 40, 33, 29, 52, 52, 34, 45, 37, 40, 50 };
+
+ uint8_t gsubs1[24] = { 21, 21, 20, 19, 168, 168, 31, 155, 68, 68, 67, 66,
+ 36, 36, 35, 34, 188, 188, 183, 181, 81, 81, 85, 80 },
+ gsubs2[24] = { 20, 20, 19, 19, 31, 31, 155, 155, 67, 67, 66, 66,
+ 35, 35, 34, 34, 183, 183, 181, 181, 85, 85, 80, 80 },
+ gsubs3[24] = { 35, 34, 188, 188, 183, 181, 81, 81, 85, 80, 21, 21,
+ 20, 19, 168, 168, 31, 155, 68, 68, 67, 66, 36, 36 },
+ gsubs4[24] = { 34, 34, 183, 183, 181, 181, 85, 85, 80, 80, 20, 20,
+ 19, 19, 31, 31, 155, 155, 67, 67, 66, 66, 35, 35 },
+ gsubs5[24] = { 20, 20, 183, 183, 31, 31, 85, 85, 67, 67, 20, 20,
+ 35, 35, 31, 31, 183, 183, 67, 67, 85, 85, 35, 35 };
+
+ iconmem = lIcons[icon];
+ xl = xlens[icon];
+ yl = ylens[icon];
+
+ if (icon == OPTIONS)
+ {
+ iconmem = boptions;
+ xl = 35;
+ yl = 9;
+ }
+
+ if ((icon == REFRESH) && game_refresh)
+ {
+ iconmem = lIcons[5];
+ xl = xlens[5];
+ yl = ylens[5];
+ }
+
+ if (icon == DIPSWITCH)
+ {
+ iconmem = lIcons[6];
+ xl = xlens[6];
+ yl = ylens[6];
+ }
+
+ uint32_t scadr = hScrollOffset + voffsets[vScrollOffset];
+ scadr += 320 * ((224 - yl) / 2); // Center vertically
+ scadr += (288 - xl) / 2; // Center horizontally
+ uint16_t bmpptr = 0;
+
+ for(int yy=0; yy<yl; yy++)
+ {
+ for(int xx=0; xx<xl; xx++)
+ {
+ uint8_t b = iconmem[bmpptr++];
+
+ if (b)
+ {
+ if ((icon == PL1START) && (b == 235) && (num_coins) && !blink_on)
+ b = 125; // Light ON color
+ /*noguib: 44x44 [Green (hi/lo): 36/235 Orange: 168/31 Neutral:12]
+ Rainbow (ROYGBP, hi/med/lo): 21,20,19; 168, 31,155; 68,67,66;
+ 36,35,34; 188,183,181; 81,85,80 */
+ if (icon == NOGUI)
+ {
+ uint8_t fln = (23 - flash) + 1; // Want to go forward (maybe fix it?)
+ switch (b)
+ {
+ case 36: { b = gsubs1[fln]; break; }
+ case 235: { b = gsubs2[fln]; break; }
+ case 168: { b = gsubs3[fln]; break; }
+ case 31: { b = gsubs4[fln]; break; }
+ case 12: { b = gsubs5[fln]; break; }
+ }
+ }
+
+ if ((icon == REFRESH) && (iline == yy) && (b == 50))
+ b = 188;
+
+ my_scr[scadr+xx+yy*320] = b;
+ }
+ }
+ }
+
+ if (!blink) // Should go here???
+ {
+ blink_on = !blink_on; // Switch blink state
+
+ if (blink_on)
+ blink = 12;
+ else
+ blink = 6;
+ }