diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/sdl/fb2opengl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/sdl/fb2opengl.h b/backends/sdl/fb2opengl.h index bf54daaffa..904bf7baeb 100644 --- a/backends/sdl/fb2opengl.h +++ b/backends/sdl/fb2opengl.h @@ -361,7 +361,7 @@ void FB2GL::update(void *fb, int w, int h, int pitch, int xskip, int yskip) { // Update 320x256 texture glBindTexture(GL_TEXTURE_2D, texture1); glTexSubImage2D(GL_TEXTURE_2D, 0, xskip, yskip, - 329-xskip, 256-yskip, GL_COLOR_INDEX, + 320-xskip, 256-yskip, GL_COLOR_INDEX, GL_UNSIGNED_BYTE, palettedFrameBuffer1); } |