mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-07 14:28:18 +01:00
fix black screenshot when returning to menu issue
This commit is contained in:
parent
76ef486a07
commit
c63dd08461
@ -55,9 +55,10 @@ static uint8 *xbsave=NULL;
|
|||||||
static int fskipc = 0;
|
static int fskipc = 0;
|
||||||
static int videoReset = 0;
|
static int videoReset = 0;
|
||||||
static int currentMode = 0;
|
static int currentMode = 0;
|
||||||
static int ResetRequested = 0;
|
int ScreenshotRequested = 0;
|
||||||
int ConfigRequested = 0;
|
int ConfigRequested = 0;
|
||||||
int ShutdownRequested = 0;
|
int ShutdownRequested = 0;
|
||||||
|
int ResetRequested = 0;
|
||||||
int ExitRequested = 0;
|
int ExitRequested = 0;
|
||||||
char appPath[1024];
|
char appPath[1024];
|
||||||
FreeTypeGX *fontSystem;
|
FreeTypeGX *fontSystem;
|
||||||
@ -341,7 +342,6 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
if((GCSettings.render != 0 && videoReset == -1) || videoReset == 0)
|
if((GCSettings.render != 0 && videoReset == -1) || videoReset == 0)
|
||||||
{
|
{
|
||||||
TakeScreenshot();
|
|
||||||
ResetVideo_Menu();
|
ResetVideo_Menu();
|
||||||
ConfigRequested = 0;
|
ConfigRequested = 0;
|
||||||
GCSettings.render = currentMode;
|
GCSettings.render = currentMode;
|
||||||
|
@ -89,6 +89,7 @@ struct SGCSettings{
|
|||||||
void ExitApp();
|
void ExitApp();
|
||||||
void ShutdownWii();
|
void ShutdownWii();
|
||||||
extern struct SGCSettings GCSettings;
|
extern struct SGCSettings GCSettings;
|
||||||
|
extern int ScreenshotRequested;
|
||||||
extern int ConfigRequested;
|
extern int ConfigRequested;
|
||||||
extern int ShutdownRequested;
|
extern int ShutdownRequested;
|
||||||
extern int ExitRequested;
|
extern int ExitRequested;
|
||||||
|
@ -279,6 +279,13 @@ copy_to_xfb (u32 arg)
|
|||||||
{
|
{
|
||||||
if (copynow == GX_TRUE)
|
if (copynow == GX_TRUE)
|
||||||
{
|
{
|
||||||
|
if(ScreenshotRequested)
|
||||||
|
{
|
||||||
|
TakeScreenshot();
|
||||||
|
ScreenshotRequested = 0;
|
||||||
|
ConfigRequested = 1;
|
||||||
|
}
|
||||||
|
|
||||||
GX_CopyDisp (xfb[whichfb], GX_TRUE);
|
GX_CopyDisp (xfb[whichfb], GX_TRUE);
|
||||||
GX_Flush ();
|
GX_Flush ();
|
||||||
copynow = GX_FALSE;
|
copynow = GX_FALSE;
|
||||||
|
@ -586,7 +586,7 @@ void GetJoy()
|
|||||||
(userInput[i].wpad.btns_h & WPAD_CLASSIC_BUTTON_HOME)
|
(userInput[i].wpad.btns_h & WPAD_CLASSIC_BUTTON_HOME)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ConfigRequested = 1; // go to the menu
|
ScreenshotRequested = 1; // go to the menu
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user