diff options
Diffstat (limited to 'firmware/target/hosted')
-rw-r--r-- | firmware/target/hosted/android/lcd-android.c | 4 | ||||
-rw-r--r-- | firmware/target/hosted/sdl/lcd-sdl.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/hosted/android/lcd-android.c b/firmware/target/hosted/android/lcd-android.c index a161406cc0..12df52c95e 100644 --- a/firmware/target/hosted/android/lcd-android.c +++ b/firmware/target/hosted/android/lcd-android.c | |||
@@ -83,7 +83,7 @@ void lcd_update(void) | |||
83 | if (display_on) | 83 | if (display_on) |
84 | { | 84 | { |
85 | JNIEnv e = *env_ptr; | 85 | JNIEnv e = *env_ptr; |
86 | jobject buffer = e->NewDirectByteBuffer(env_ptr, lcd_framebuffer, | 86 | jobject buffer = e->NewDirectByteBuffer(env_ptr, FBADDR(0,0), |
87 | (jlong) FRAMEBUFFER_SIZE); | 87 | (jlong) FRAMEBUFFER_SIZE); |
88 | 88 | ||
89 | e->CallVoidMethod(env_ptr, RockboxFramebuffer_instance, | 89 | e->CallVoidMethod(env_ptr, RockboxFramebuffer_instance, |
@@ -97,7 +97,7 @@ void lcd_update_rect(int x, int y, int width, int height) | |||
97 | if (display_on) | 97 | if (display_on) |
98 | { | 98 | { |
99 | JNIEnv e = *env_ptr; | 99 | JNIEnv e = *env_ptr; |
100 | jobject buffer = e->NewDirectByteBuffer(env_ptr, lcd_framebuffer, | 100 | jobject buffer = e->NewDirectByteBuffer(env_ptr, FBADDR(0,0), |
101 | (jlong) FRAMEBUFFER_SIZE); | 101 | (jlong) FRAMEBUFFER_SIZE); |
102 | jobject rect = e->NewObject(env_ptr, AndroidRect_class, AndroidRect_constructor, | 102 | jobject rect = e->NewObject(env_ptr, AndroidRect_class, AndroidRect_constructor, |
103 | x, y, x + width, y + height); | 103 | x, y, x + width, y + height); |
diff --git a/firmware/target/hosted/sdl/lcd-sdl.c b/firmware/target/hosted/sdl/lcd-sdl.c index 40ba94072b..de19de365a 100644 --- a/firmware/target/hosted/sdl/lcd-sdl.c +++ b/firmware/target/hosted/sdl/lcd-sdl.c | |||
@@ -39,7 +39,7 @@ void sdl_update_rect(SDL_Surface *surface, int x_start, int y_start, int width, | |||
39 | (void)max_y; | 39 | (void)max_y; |
40 | (void)getpixel; | 40 | (void)getpixel; |
41 | /* Update complete screen via one blit operation (fast) */ | 41 | /* Update complete screen via one blit operation (fast) */ |
42 | SDL_Surface *lcd = SDL_CreateRGBSurfaceFrom(lcd_framebuffer, LCD_FBWIDTH, | 42 | SDL_Surface *lcd = SDL_CreateRGBSurfaceFrom(FBADDR(0, 0), LCD_FBWIDTH, |
43 | LCD_FBHEIGHT, LCD_DEPTH, | 43 | LCD_FBHEIGHT, LCD_DEPTH, |
44 | LCD_FBWIDTH * LCD_DEPTH/8, | 44 | LCD_FBWIDTH * LCD_DEPTH/8, |
45 | 0, 0, 0, 0); | 45 | 0, 0, 0, 0); |