diff options
| author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-25 17:50:20 -0300 |
|---|---|---|
| committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-26 00:54:13 -0300 |
| commit | 37eaf39b4443305fd04b894abcfc09cd68c17087 (patch) | |
| tree | bdf6b251afbae9f49a369e7cad7c82ed85fd4599 /src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | |
| parent | 4b80dd23a4462b0f4e9f096e0dc0cc4606d8cfe8 (diff) | |
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/emu_window/emu_window_sdl2.cpp')
| -rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | 3 |
1 files changed, 1 insertions, 2 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() { } } -void EmuWindow_SDL2::OnMinimalClientAreaChangeRequest( - const std::pair<unsigned, unsigned>& minimal_size) { +void EmuWindow_SDL2::OnMinimalClientAreaChangeRequest(std::pair<unsigned, unsigned> minimal_size) { SDL_SetWindowMinimumSize(render_window, minimal_size.first, minimal_size.second); } |
