SDL2: Implement fullscreen. (Original PR: citra-emu/citra#3607)
This commit is contained in:
parent
c6ab2c94d9
commit
f48d5e4c4c
3 changed files with 40 additions and 4 deletions
|
@ -12,7 +12,7 @@ struct SDL_Window;
|
|||
|
||||
class EmuWindow_SDL2 : public EmuWindow {
|
||||
public:
|
||||
EmuWindow_SDL2();
|
||||
explicit EmuWindow_SDL2(bool fullscreen);
|
||||
~EmuWindow_SDL2();
|
||||
|
||||
/// Swap buffers to display the next frame
|
||||
|
@ -43,6 +43,9 @@ private:
|
|||
/// Called by PollEvents when any event that may cause the window to be resized occurs
|
||||
void OnResize();
|
||||
|
||||
/// Called when user passes the fullscreen parameter flag
|
||||
void Fullscreen();
|
||||
|
||||
/// Called when a configuration change affects the minimal size of the window
|
||||
void OnMinimalClientAreaChangeRequest(
|
||||
const std::pair<unsigned, unsigned>& minimal_size) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue