diff options
| author | Franklin Wei <git@fwei.tk> | 2017-12-23 21:23:06 -0500 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2017-12-23 21:28:20 -0500 |
| commit | 6416d96fbc6946a0eee8ba29bb881fbf4dcbe607 (patch) | |
| tree | 3a1e0bf7766c9589c223fa70e5309de0593e3930 /apps/plugins/sdl/src | |
| parent | a855d6202536ff28e5aae4f22a0f31d8f5b325d0 (diff) | |
| download | rockbox-6416d96fbc6946a0eee8ba29bb881fbf4dcbe607.zip rockbox-6416d96fbc6946a0eee8ba29bb881fbf4dcbe607.tar.gz rockbox-6416d96fbc6946a0eee8ba29bb881fbf4dcbe607.tar.bz2 rockbox-6416d96fbc6946a0eee8ba29bb881fbf4dcbe607.tar.xz | |
fix red
Change-Id: I20f1bd6f0208f6108d68fb59206b09dd9da4f1af
Diffstat (limited to 'apps/plugins/sdl/src')
| -rw-r--r-- | apps/plugins/sdl/src/video/rockbox/SDL_rockboxvideo.c | 6 | ||||
| -rw-r--r-- | apps/plugins/sdl/src/video/rockbox/keymaps_extra.h | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/apps/plugins/sdl/src/video/rockbox/SDL_rockboxvideo.c b/apps/plugins/sdl/src/video/rockbox/SDL_rockboxvideo.c index 2f16f3c..58de157 100644 --- a/apps/plugins/sdl/src/video/rockbox/SDL_rockboxvideo.c +++ b/apps/plugins/sdl/src/video/rockbox/SDL_rockboxvideo.c @@ -669,12 +669,12 @@ static void ROCKBOX_UnlockHWSurface(_THIS, SDL_Surface *surface) #if LCD_PIXELFORMAT == RGB565SWAPPED static void flip_pixels(int x, int y, int w, int h) { - for(int y = rects[i].y; y < rects[i].y + rects[i].h; ++y) + for(int y_0 = y; y_0 < y + h; ++y_0) { - for(int x = rects[i].x; x < rects[i].x + rects[i].w; ++x) + for(int x_0 = x; x_0 < x + w; ++x_0) { /* swap pixels directly in the framebuffer */ - rb->lcd_framebuffer[y * LCD_WIDTH + x] = swap16(rb->lcd_framebuffer[y * LCD_WIDTH + x]); + rb->lcd_framebuffer[y_0 * LCD_WIDTH + x_0] = swap16(rb->lcd_framebuffer[y_0 * LCD_WIDTH + x_0]); } } } diff --git a/apps/plugins/sdl/src/video/rockbox/keymaps_extra.h b/apps/plugins/sdl/src/video/rockbox/keymaps_extra.h index a205262..2da5c0e 100644 --- a/apps/plugins/sdl/src/video/rockbox/keymaps_extra.h +++ b/apps/plugins/sdl/src/video/rockbox/keymaps_extra.h @@ -25,8 +25,7 @@ #ifndef _SDL_KEYMAPS_EXTRA_H #define _SDL_KEYMAPS_EXTRA_H -#if (CONFIG_KEYPAD == GIGABEAT_PAD) || \ - (CONFIG_KEYPAD == GIGABEAT_S_PAD) +#if (CONFIG_KEYPAD == GIGABEAT_S_PAD) #define BTN_EXTRA1 BUTTON_SELECT #define BTN_EXTRA2 BUTTON_BACK #define BTN_EXTRA3 BUTTON_VOL_DOWN |