diff options
author | Moshe Piekarski <dev.rockbox@melachim.net> | 2020-10-06 13:34:04 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2020-10-26 12:28:48 -0400 |
commit | 12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a (patch) | |
tree | cb9850c2c4ea68b7acc816828c4d53dd7c8391f9 /apps/plugins/puzzles | |
parent | 5d5f8169b53fc989b456b0f0d7940bcf9415cbeb (diff) | |
download | rockbox-12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a.tar.gz rockbox-12f3ed1699d6bef25bed90ba95cbcc1a6bb4934a.zip |
make the plugin API frambuffer agnostic
Change-Id: I5abdc231093054c517ff53b9a456997e440e3f6e
Diffstat (limited to 'apps/plugins/puzzles')
-rw-r--r-- | apps/plugins/puzzles/rockbox.c | 14 |
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, } else #endif - draw_antialiased_line(rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, x1, y1, x2, y2); + draw_antialiased_line(*rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, x1, y1, x2, y2); } else { @@ -1294,7 +1294,7 @@ static void rb_draw_poly(void *handle, int *coords, int npoints, x2, y2); } else - draw_antialiased_line(rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, x1, y1, x2, y2); + draw_antialiased_line(*rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, x1, y1, x2, y2); #ifdef DEBUG_MENU if(debug_settings.polyanim) @@ -1319,7 +1319,7 @@ static void rb_draw_poly(void *handle, int *coords, int npoints, x2, y2); } else - draw_antialiased_line(rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, x1, y1, x2, y2); + draw_antialiased_line(*rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, x1, y1, x2, y2); } else { @@ -1474,7 +1474,7 @@ static void rb_blitter_save(void *handle, blitter *bl, int x, int y) trim_rect(&x, &y, &w, &h); - fb_data *fb = zoom_enabled ? zoom_fb : rb->lcd_framebuffer; + fb_data *fb = zoom_enabled ? zoom_fb : *rb->lcd_framebuffer; LOGF("rb_blitter_save(%d, %d, %d, %d)", x, y, w, h); for(int i = 0; i < h; ++i) { @@ -1778,9 +1778,9 @@ static void timer_cb(void) static bool what = false; what = !what; if(what) - rb->lcd_framebuffer[0] = LCD_BLACK; + *rb->lcd_framebuffer[0] = LCD_BLACK; else - rb->lcd_framebuffer[0] = LCD_WHITE; + *rb->lcd_framebuffer[0] = LCD_WHITE; rb->lcd_update(); } #endif @@ -2909,7 +2909,7 @@ static void bench_aa(void) int i = 0; while(*rb->current_tick < next) { - draw_antialiased_line(rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, 0, 0, 20, 31); + draw_antialiased_line(*rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT, 0, 0, 20, 31); ++i; } rb->splashf(HZ, "%d AA lines/sec", i); |