X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=drivers%2Fgp2x%2Fmain.c;h=ac48a2d2fca57f2fccb9c207a866c88653c06ee3;hp=cbd8679be5b2acaef72eed11d1b3c93b7ea18202;hb=0bb3fe122854be9af6c3024fef9f503d27bc63a1;hpb=d0f72c9ab3d6acf18f236970c1c359fafa3e1ce7 diff --git a/drivers/gp2x/main.c b/drivers/gp2x/main.c index cbd8679..ac48a2d 100644 --- a/drivers/gp2x/main.c +++ b/drivers/gp2x/main.c @@ -466,11 +466,13 @@ static void DriverKill(void) void FCEUD_Update(uint8 *xbuf, int16 *Buffer, int Count) { - if(!Count && !(eoptions&EO_NOTHROTTLE)) + if(!(eoptions&EO_NOTHROTTLE)) + { + if(Count) + WriteSound(Buffer,Count); SpeedThrottle(); + } + FCEUD_UpdateInput(); // must update input before blitting because of save confirmation stuff BlitScreen(xbuf); - if(Count && !(eoptions&EO_NOTHROTTLE)) - WriteSound(Buffer,Count); - FCEUD_UpdateInput(); }