onepad: fix the reset screen saver commit...

Thanks @olegv11 for the review
This commit is contained in:
Gregory Hainaut 2015-11-07 13:19:46 +01:00
parent 2b02a7433f
commit e5f9923f76
1 changed files with 1 additions and 1 deletions

View File

@ -164,9 +164,9 @@ EXPORT_C_(void) PADupdate(int pad)
// be fired after a couple of minute.
// Emulate an user activity
static int count = 0;
count++;
if ((count & 0xFFF) == 0) {
// 1 call every 4096 Vsync is enough
count++;
XResetScreenSaver(GSdsp);
}