Whitespace cleanup Stylus_Move, no functional changes.
This commit is contained in:
parent
95a80303b5
commit
30c0e56fc9
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue