summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2019-05-25 17:50:20 -0300
committerGravatar ReinUsesLisp2019-05-26 00:54:13 -0300
commit37eaf39b4443305fd04b894abcfc09cd68c17087 (patch)
treebdf6b251afbae9f49a369e7cad7c82ed85fd4599 /src/yuzu_cmd
parentyuzu_cmd: Split emu_window OpenGL implementation into its own file (diff)
downloadyuzu-37eaf39b4443305fd04b894abcfc09cd68c17087.tar.gz
yuzu-37eaf39b4443305fd04b894abcfc09cd68c17087.tar.xz
yuzu-37eaf39b4443305fd04b894abcfc09cd68c17087.zip
emu_window: Pass OnMinimalClientAreaChangeRequest argument by copy
There's no performance improvement in passing an unsigned pair by reference.
Diffstat (limited to 'src/yuzu_cmd')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.cpp3
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
index d32ad9fa0..a6edc089a 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
@@ -172,7 +172,6 @@ void EmuWindow_SDL2::PollEvents() {
172 } 172 }
173} 173}
174 174
175void EmuWindow_SDL2::OnMinimalClientAreaChangeRequest( 175void EmuWindow_SDL2::OnMinimalClientAreaChangeRequest(std::pair<unsigned, unsigned> minimal_size) {
176 const std::pair<unsigned, unsigned>& minimal_size) {
177 SDL_SetWindowMinimumSize(render_window, minimal_size.first, minimal_size.second); 176 SDL_SetWindowMinimumSize(render_window, minimal_size.first, minimal_size.second);
178} 177}
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.h b/src/yuzu_cmd/emu_window/emu_window_sdl2.h
index 09145835b..d8051ebdf 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.h
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.h
@@ -50,8 +50,7 @@ protected:
50 void Fullscreen(); 50 void Fullscreen();
51 51
52 /// Called when a configuration change affects the minimal size of the window 52 /// Called when a configuration change affects the minimal size of the window
53 void OnMinimalClientAreaChangeRequest( 53 void OnMinimalClientAreaChangeRequest(std::pair<unsigned, unsigned> minimal_size) override;
54 const std::pair<unsigned, unsigned>& minimal_size) override;
55 54
56 /// Is the window still open? 55 /// Is the window still open?
57 bool is_open = true; 56 bool is_open = true;