Whitespace cleanup Stylus_Move, no functional changes.

This commit is contained in:
riccardom 2009-04-11 14:40:36 +00:00
parent 95a80303b5
commit 30c0e56fc9
1 changed files with 19 additions and 13 deletions

View File

@ -932,7 +932,6 @@ static gboolean Stylus_Move(GtkWidget *w, GdkEventMotion *e, gpointer data)
s32 EmuX, EmuY;
const int *opengl = (const int *)data;
if(click) {
int scaled_x, scaled_y;
if(e->is_hint)
@ -954,8 +953,15 @@ static gboolean Stylus_Move(GtkWidget *w, GdkEventMotion *e, gpointer data)
if(scaled_y >= 0 && (state & GDK_BUTTON1_MASK)) {
EmuX = scaled_x;
EmuY = scaled_y;
if(EmuX<0) EmuX = 0; else if(EmuX>255) EmuX = 255;
if(EmuY<0) EmuY = 0; else if(EmuY>192) EmuY = 192;
if(EmuX<0)
EmuX = 0;
else if(EmuX>255)
EmuX = 255;
if(EmuY<0)
EmuY = 0;
else if(EmuY>192)
EmuY = 192;
NDS_setTouchPos(EmuX, EmuY);
}
}