summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/emu_window/emu_window_sdl2.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-21 19:53:55 +0200
committerGitHub <noreply@github.com>2018-04-21 19:53:55 +0200
commit62937798a0d298ca463486120d27a752fa798b68 (patch)
tree42ef6005d66a5c31ab002ceefdfdc1d16391dd67 /src/yuzu_cmd/emu_window/emu_window_sdl2.h
parentMerge pull request #376 from bunnei/shader-decoder (diff)
parentSDL2: Implement fullscreen. (Original PR: citra-emu/citra#3607) (diff)
downloadyuzu-62937798a0d298ca463486120d27a752fa798b68.tar
yuzu-62937798a0d298ca463486120d27a752fa798b68.tar.gz
yuzu-62937798a0d298ca463486120d27a752fa798b68.tar.bz2
yuzu-62937798a0d298ca463486120d27a752fa798b68.tar.lz
yuzu-62937798a0d298ca463486120d27a752fa798b68.tar.xz
yuzu-62937798a0d298ca463486120d27a752fa798b68.tar.zst
yuzu-62937798a0d298ca463486120d27a752fa798b68.zip
Diffstat (limited to 'src/yuzu_cmd/emu_window/emu_window_sdl2.h')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.h b/src/yuzu_cmd/emu_window/emu_window_sdl2.h
index 3664d2fbe..7d5cfffb6 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.h
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.h
@@ -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;