early-access version 2676
This commit is contained in:
parent
6aa41c28f7
commit
019a2dffae
2 changed files with 8 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 2675.
|
This is the source code for early-access 2676.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
|
|
@ -123,14 +123,15 @@ void EmuWindow_SDL2::ShowCursor(bool show_cursor) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmuWindow_SDL2::Fullscreen() {
|
void EmuWindow_SDL2::Fullscreen() {
|
||||||
|
SDL_DisplayMode display_mode;
|
||||||
switch (Settings::values.fullscreen_mode.GetValue()) {
|
switch (Settings::values.fullscreen_mode.GetValue()) {
|
||||||
case Settings::FullscreenMode::Exclusive:
|
case Settings::FullscreenMode::Exclusive:
|
||||||
// Set window size to render size before entering fullscreen -- SDL does not resize to
|
// Set window size to render size before entering fullscreen -- SDL2 does not resize window
|
||||||
// display dimensions in this mode.
|
// to display dimensions automatically in this mode.
|
||||||
// TODO: Multiply the window size by resolution_factor (for both docked modes)
|
if (SDL_GetDesktopDisplayMode(0, &display_mode) == 0) {
|
||||||
if (Settings::values.use_docked_mode) {
|
SDL_SetWindowSize(render_window, display_mode.w, display_mode.h);
|
||||||
SDL_SetWindowSize(render_window, Layout::ScreenDocked::Width,
|
} else {
|
||||||
Layout::ScreenDocked::Height);
|
LOG_ERROR(Frontend, "SDL_GetDesktopDisplayMode failed: {}", SDL_GetError());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SDL_SetWindowFullscreen(render_window, SDL_WINDOW_FULLSCREEN) == 0) {
|
if (SDL_SetWindowFullscreen(render_window, SDL_WINDOW_FULLSCREEN) == 0) {
|
||||||
|
|
Loading…
Reference in a new issue