diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -24,9 +24,13 @@ int hblank_counter = 0; | |||
24 | 24 | ||
25 | void | 25 | void |
26 | irs_hblank_func() { | 26 | irs_hblank_func() { |
27 | u16 clr = (DISP_VCOUNT / 8); | ||
28 | PAL_BUFFER_BG[0] = rgb15(clr, 0, 31 - clr); | ||
29 | hblank_counter++; | 27 | hblank_counter++; |
28 | if (DISP_VCOUNT >= 160) { | ||
29 | PAL_BUFFER_BG[0] = rgb15(0, 0, 0); | ||
30 | } else { | ||
31 | u16 clr = (DISP_VCOUNT / 8); | ||
32 | PAL_BUFFER_BG[0] = rgb15(clr, 0, 31 - clr); | ||
33 | } | ||
30 | } | 34 | } |
31 | 35 | ||
32 | int main(void) { | 36 | int main(void) { |
@@ -56,7 +60,7 @@ int main(void) { | |||
56 | txt_clear_line(); | 60 | txt_clear_line(); |
57 | txt_printf(" HBlank counter: %d\n", hblank_counter); | 61 | txt_printf(" HBlank counter: %d\n", hblank_counter); |
58 | txt_clear_line(); | 62 | txt_clear_line(); |
59 | txt_printf(" Frame counter: %d", frame_counter); | 63 | txt_printf(" Frame counter: %d\n", frame_counter); |
60 | 64 | ||
61 | frame_counter++; | 65 | frame_counter++; |
62 | update_button_sprites(); | 66 | update_button_sprites(); |