notaz.gp2x.de
/
fceu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mmuhack, 6502 tweaks, fskip
[fceu.git]
/
drivers
/
gp2x
/
input.c
diff --git
a/drivers/gp2x/input.c
b/drivers/gp2x/input.c
index
8936ec0
..
704cb3a
100644
(file)
--- a/
drivers/gp2x/input.c
+++ b/
drivers/gp2x/input.c
@@
-30,11
+30,11
@@
#include "minimal.h"
extern int swapbuttons;
#include "minimal.h"
extern int swapbuttons;
-extern int s
tretch_offset
;
+extern int s
caled_display
;
extern int FSkip_setting;
extern void SetVideoScaling(int pixels,int width,int height);
extern int FSkip_setting;
extern void SetVideoScaling(int pixels,int width,int height);
-INLINE long UpdateGamepadGP2X(void);
+
static
INLINE long UpdateGamepadGP2X(void);
@@
-125,7
+125,7
@@
static void setsoundvol(int soundvolume)
* GP2x joystick reader
*
*/
* GP2x joystick reader
*
*/
-INLINE long UpdateGamepadGP2X(void)
+
static
INLINE long UpdateGamepadGP2X(void)
{
uint32 JS=0;
{
uint32 JS=0;
@@
-173,23
+173,15
@@
INLINE long UpdateGamepadGP2X(void)
// still pressed down from stretching from last one
goto no_pad;
}
// still pressed down from stretching from last one
goto no_pad;
}
- if (stretch_offset == 32)
- {
- stretch_offset=0;
- }
- else
- {
- stretch_offset=32;
- }
+ scaled_display = !scaled_display;
- if (s
tretch_offset == 32
)
+ if (s
caled_display
)
{
{
- SetVideoScaling(320, 320, 240);
- CleanSurface();
+ SetVideoScaling(320, 256, 240);
}
else
{
}
else
{
-
SetVideoScaling(320, 256
, 240);
+
SetVideoScaling(320, 320
, 240);
}
goto no_pad;
}
goto no_pad;