summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 2f1c522..ec2150a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -24,9 +24,13 @@ int hblank_counter = 0;
24 24
25void 25void
26irs_hblank_func() { 26irs_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
32int main(void) { 36int 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();