From aec299664e2190cad8a5357b52065d60e07b66f6 Mon Sep 17 00:00:00 2001 From: damdoum Date: Fri, 5 Jan 2007 17:59:01 +0000 Subject: [PATCH] size 1x 2x 3x --- desmume/src/gtk-glade/callbacks_IO.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/gtk-glade/callbacks_IO.c b/desmume/src/gtk-glade/callbacks_IO.c index 4f9f86d9a..75061f59c 100755 --- a/desmume/src/gtk-glade/callbacks_IO.c +++ b/desmume/src/gtk-glade/callbacks_IO.c @@ -44,7 +44,7 @@ gboolean on_wMainW_key_release_event (GtkWidget *widget, GdkEventKey *event, g -const int offset_pixels_lower_screen = 256*2*192; // w * bpp * h +const int offset_pixels_lower_screen = 256*192; // w * h #define MAX_SIZE 3 guchar on_screen_image[256*192*3*2*MAX_SIZE*MAX_SIZE]; @@ -59,7 +59,7 @@ int screen (GtkWidget * widget, int offset_pix) { */ int dx,x,dy,y, W,H,L; u32 image[192][256], r,g,b; - u16 * pixel = &GPU_screen; + u16 * pixel = (u16*)&GPU_screen + offset_pix; guchar * rgb = &on_screen_image[0]; for (y=0; y<192; y++) {