mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-23 16:33:00 +02:00
fix blank screen when hitting "Cancel" on double screen dialog
This commit is contained in:
@@ -735,7 +735,6 @@ void DoubleScreenDialog()
|
|||||||
{
|
{
|
||||||
Client::Ref().SetPref("Scale", 1);
|
Client::Ref().SetPref("Scale", 1);
|
||||||
engine->SetScale(1);
|
engine->SetScale(1);
|
||||||
engine->CloseWindow();
|
|
||||||
#ifdef WIN
|
#ifdef WIN
|
||||||
LoadWindowPosition(1);
|
LoadWindowPosition(1);
|
||||||
#endif
|
#endif
|
||||||
@@ -1013,7 +1012,7 @@ int main(int argc, char * argv[])
|
|||||||
tempScale = 1;
|
tempScale = 1;
|
||||||
|
|
||||||
SDLOpen();
|
SDLOpen();
|
||||||
if (Client::Ref().IsFirstRun() && desktopWidth > WINDOWW*2+50 && desktopHeight > WINDOWH*2+50)
|
//if (Client::Ref().IsFirstRun() && desktopWidth > WINDOWW*2+50 && desktopHeight > WINDOWH*2+50)
|
||||||
{
|
{
|
||||||
tempScale = 2;
|
tempScale = 2;
|
||||||
Client::Ref().SetPref("Scale", 2);
|
Client::Ref().SetPref("Scale", 2);
|
||||||
|
Reference in New Issue
Block a user