diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2014-10-12 18:14:57 +0200 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-11-18 13:09:01 +0100 |
commit | bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8 (patch) | |
tree | b1f350a3506289263c3652f46946baf267cb27f8 /src/citra/emu_window/emu_window_glfw.h | |
parent | Viewport scaling and display density independence (diff) | |
download | yuzu-bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8.tar yuzu-bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8.tar.gz yuzu-bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8.tar.bz2 yuzu-bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8.tar.lz yuzu-bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8.tar.xz yuzu-bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8.tar.zst yuzu-bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/citra/emu_window/emu_window_glfw.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/citra/emu_window/emu_window_glfw.h b/src/citra/emu_window/emu_window_glfw.h index e96228765..0da688a54 100644 --- a/src/citra/emu_window/emu_window_glfw.h +++ b/src/citra/emu_window/emu_window_glfw.h @@ -4,10 +4,10 @@ #pragma once -#include <GLFW/glfw3.h> - #include "common/emu_window.h" +struct GLFWwindow; + class EmuWindow_GLFW : public EmuWindow { public: EmuWindow_GLFW(); @@ -30,12 +30,15 @@ public: /// Whether the window is still open, and a close request hasn't yet been sent const bool IsOpen(); - void ReloadSetKeymaps() override; + static void OnClientAreaResizeEvent(GLFWwindow* win, int width, int height); - /// Gets the size of the window in pixels - void GetFramebufferSize(int* fbWidth, int* fbHeight); + static void OnFramebufferResizeEvent(GLFWwindow* win, int width, int height); + + void ReloadSetKeymaps() override; private: + static EmuWindow_GLFW* GetEmuWindow(GLFWwindow* win); + GLFWwindow* m_render_window; ///< Internal GLFW render window /// Device id of keyboard for use with KeyMap |