mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-24 14:49:53 -06:00
UI: detect and save when window is maximized, and restore it as such. fixes #1135
This commit is contained in:
@ -78,7 +78,7 @@ signals:
|
||||
void windowLimitFPSChange();
|
||||
|
||||
void screenLayoutChange();
|
||||
|
||||
|
||||
void windowFullscreenToggle();
|
||||
|
||||
void swapScreensToggle();
|
||||
@ -120,7 +120,7 @@ protected:
|
||||
int numScreens;
|
||||
|
||||
bool touching;
|
||||
|
||||
|
||||
void showCursor();
|
||||
};
|
||||
|
||||
@ -200,11 +200,12 @@ public:
|
||||
|
||||
bool hasOGL;
|
||||
QOpenGLContext* getOGLContext();
|
||||
|
||||
|
||||
void onAppStateChanged(Qt::ApplicationState state);
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent* event) override;
|
||||
void changeEvent(QEvent* event) override;
|
||||
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
void keyReleaseEvent(QKeyEvent* event) override;
|
||||
@ -268,7 +269,7 @@ private slots:
|
||||
void onEmuStop();
|
||||
|
||||
void onUpdateVideoSettings(bool glchange);
|
||||
|
||||
|
||||
void onFullscreenToggled();
|
||||
|
||||
private:
|
||||
@ -283,9 +284,12 @@ private:
|
||||
void createScreenPanel();
|
||||
|
||||
QString loadErrorStr(int error);
|
||||
|
||||
|
||||
bool pausedManually;
|
||||
|
||||
int oldW, oldH;
|
||||
bool oldMax;
|
||||
|
||||
public:
|
||||
QWidget* panel;
|
||||
ScreenPanelGL* panelGL;
|
||||
|
Reference in New Issue
Block a user