summaryrefslogtreecommitdiff
path: root/libpcsxcore/psxcommon.c
diff options
context:
space:
mode:
authorSND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-04-17 21:26:36 +0000
committerSND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-04-17 21:26:36 +0000
commit9a7b4084da6349adca6c1387f390da9bc813d09a (patch)
tree7c29303fd4bfaf2e964d22fa3c9fd81aaa0cecb4 /libpcsxcore/psxcommon.c
parent158718f939810dbfedeb49e178db4fe781d9918e (diff)
GPU picture fix. This should be also easy to implement on others archs as well.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@90038 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/psxcommon.c')
-rwxr-xr-xlibpcsxcore/psxcommon.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libpcsxcore/psxcommon.c b/libpcsxcore/psxcommon.c
index b7f547f0..753222d2 100755
--- a/libpcsxcore/psxcommon.c
+++ b/libpcsxcore/psxcommon.c
@@ -29,7 +29,10 @@ boolean NetOpened = FALSE;
int Log = 0;
FILE *emuLog = NULL;
-u32 rewind_counter=0; // It is safe if this overflows
+
+// It is safe if these overflow
+u32 rewind_counter=0;
+u8 vblank_count_hideafter=0;
int EmuInit() {
return psxInit();
@@ -61,6 +64,12 @@ void EmuUpdate() {
ApplyCheats();
+ if (vblank_count_hideafter) {
+ if (!(--vblank_count_hideafter)) {
+ GPU_showScreenPic(NULL);
+ }
+ }
+
if (Config.RewindInterval > 0 && !(++rewind_counter%Config.RewindInterval)) {
CreateRewindState();
}