summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/rockbox.c
diff options
context:
space:
mode:
authorMoshe Piekarski <dev.rockbox@melachim.net>2020-10-06 13:34:04 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2020-10-26 12:28:48 -0400
commit12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a (patch)
treecb9850c2c4ea68b7acc816828c4d53dd7c8391f9 /apps/plugins/puzzles/rockbox.c
parent5d5f8169b53fc989b456b0f0d7940bcf9415cbeb (diff)
downloadrockbox-12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a.tar.gz
rockbox-12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a.zip
make the plugin API frambuffer agnostic
Change-Id: I5abdc231093054c517ff53b9a456997e440e3f6e
Diffstat (limited to 'apps/plugins/puzzles/rockbox.c')
-rw-r--r--apps/plugins/puzzles/rockbox.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c
index 9fabbf25d2..ed58bd900a 100644
--- a/apps/plugins/puzzles/rockbox.c
+++ b/apps/plugins/puzzles/rockbox.c
@@ -1016,7 +1016,7 @@ static void rb_draw_line(void *handle, int x1, int y1, int x2, int y2,
1016 } 1016 }
1017 else 1017 else
1018#endif 1018#endif
1019 draw_antialiased_line(rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, x1, y1, x2, y2); 1019 draw_antialiased_line(*rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, x1, y1, x2, y2);
1020 } 1020 }
1021 else 1021 else
1022 { 1022 {
@@ -1294,7 +1294,7 @@ static void rb_draw_poly(void *handle, int *coords, int npoints,
1294 x2, y2); 1294 x2, y2);
1295 } 1295 }
1296 else 1296 else
1297 draw_antialiased_line(rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, x1, y1, x2, y2); 1297 draw_antialiased_line(*rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, x1, y1, x2, y2);
1298 1298
1299#ifdef DEBUG_MENU 1299#ifdef DEBUG_MENU
1300 if(debug_settings.polyanim) 1300 if(debug_settings.polyanim)
@@ -1319,7 +1319,7 @@ static void rb_draw_poly(void *handle, int *coords, int npoints,
1319 x2, y2); 1319 x2, y2);
1320 } 1320 }
1321 else 1321 else
1322 draw_antialiased_line(rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, x1, y1, x2, y2); 1322 draw_antialiased_line(*rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, x1, y1, x2, y2);
1323 } 1323 }
1324 else 1324 else
1325 { 1325 {
@@ -1474,7 +1474,7 @@ static void rb_blitter_save(void *handle, blitter *bl, int x, int y)
1474 1474
1475 trim_rect(&x, &y, &w, &h); 1475 trim_rect(&x, &y, &w, &h);
1476 1476
1477 fb_data *fb = zoom_enabled ? zoom_fb : rb->lcd_framebuffer; 1477 fb_data *fb = zoom_enabled ? zoom_fb : *rb->lcd_framebuffer;
1478 LOGF("rb_blitter_save(%d, %d, %d, %d)", x, y, w, h); 1478 LOGF("rb_blitter_save(%d, %d, %d, %d)", x, y, w, h);
1479 for(int i = 0; i < h; ++i) 1479 for(int i = 0; i < h; ++i)
1480 { 1480 {
@@ -1778,9 +1778,9 @@ static void timer_cb(void)
1778 static bool what = false; 1778 static bool what = false;
1779 what = !what; 1779 what = !what;
1780 if(what) 1780 if(what)
1781 rb->lcd_framebuffer[0] = LCD_BLACK; 1781 *rb->lcd_framebuffer[0] = LCD_BLACK;
1782 else 1782 else
1783 rb->lcd_framebuffer[0] = LCD_WHITE; 1783 *rb->lcd_framebuffer[0] = LCD_WHITE;
1784 rb->lcd_update(); 1784 rb->lcd_update();
1785 } 1785 }
1786#endif 1786#endif
@@ -2909,7 +2909,7 @@ static void bench_aa(void)
2909 int i = 0; 2909 int i = 0;
2910 while(*rb->current_tick < next) 2910 while(*rb->current_tick < next)
2911 { 2911 {
2912 draw_antialiased_line(rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, 0, 0, 20, 31); 2912 draw_antialiased_line(*rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, 0, 0, 20, 31);
2913 ++i; 2913 ++i;
2914 } 2914 }
2915 rb->splashf(HZ, "%d AA lines/sec", i); 2915 rb->splashf(HZ, "%d AA lines/sec", i);