notaz.gp2x.de
/
fceu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perfect vsync, bugfixes
[fceu.git]
/
drivers
/
gp2x
/
gp2x-video.c
diff --git
a/drivers/gp2x/gp2x-video.c
b/drivers/gp2x/gp2x-video.c
index
198222d
..
d8524b6
100644
(file)
--- a/
drivers/gp2x/gp2x-video.c
+++ b/
drivers/gp2x/gp2x-video.c
@@
-156,11
+156,11
@@
static INLINE void printFps(uint8 *screen)
}
}
-void Blit
Screen(uint8 *buf
)
+void Blit
Prepare(int skip
)
{
framesEmulated++;
{
framesEmulated++;
- if (
!buf
) {
+ if (
skip
) {
printFps(0);
return;
}
printFps(0);
return;
}
@@
-185,8
+185,18
@@
void BlitScreen(uint8 *buf)
memset32((int *)((char *)gp2x_screen + 32), 0, srendline*320*2/4);
}
memset32((int *)((char *)gp2x_screen + 32), 0, srendline*320*2/4);
}
- gp2x_video_flip();
- XBuf = gp2x_screen;
+ /* at this point we should be done with the frame */
+ gp2x_video_flush_cache();
+}
+
+
+void BlitScreen(int skip)
+{
+ if (!skip)
+ {
+ gp2x_video_flip();
+ XBuf = gp2x_screen;
+ }
}
}