mirror of
https://github.com/dborth/vbagx.git
synced 2024-12-26 02:31:50 +01:00
fix black screenshot when returning to menu issue
This commit is contained in:
parent
176c4c95bd
commit
b9c609408e
@ -894,7 +894,7 @@ u32 GetJoy(int pad)
|
||||
(DownUsbKeys[KB_ESC])
|
||||
)
|
||||
{
|
||||
ConfigRequested = 1;
|
||||
ScreenshotRequested = 1;
|
||||
updateRumbleFrame();
|
||||
return 0;
|
||||
}
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "wiiusbsupport.h"
|
||||
|
||||
extern int emulating;
|
||||
int ScreenshotRequested = 0;
|
||||
int ConfigRequested = 0;
|
||||
int ShutdownRequested = 0;
|
||||
int ResetRequested = 0;
|
||||
@ -290,7 +291,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
if(ConfigRequested)
|
||||
{
|
||||
TakeScreenshot();
|
||||
ResetVideo_Menu();
|
||||
break; // leave emulation loop
|
||||
}
|
||||
|
@ -74,6 +74,7 @@ struct SGCSettings{
|
||||
void ExitApp();
|
||||
void ShutdownWii();
|
||||
extern struct SGCSettings GCSettings;
|
||||
extern int ScreenshotRequested;
|
||||
extern int ConfigRequested;
|
||||
extern int ShutdownRequested;
|
||||
extern int ExitRequested;
|
||||
|
@ -141,8 +141,16 @@ copy_to_xfb (u32 arg)
|
||||
{
|
||||
if (copynow == GX_TRUE)
|
||||
{
|
||||
if(ScreenshotRequested)
|
||||
{
|
||||
TakeScreenshot();
|
||||
ScreenshotRequested = 0;
|
||||
ConfigRequested = 1;
|
||||
}
|
||||
|
||||
GX_CopyDisp (xfb[whichfb], GX_TRUE);
|
||||
GX_Flush ();
|
||||
|
||||
copynow = GX_FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user