From 64154f60602f185da2ac07413ad9b4ae4b0f6f69 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 6 Nov 2016 18:35:00 +0100 Subject: [PATCH] win32_common.cpp - turn function static --- gfx/common/win32_common.cpp | 12 ++++++------ gfx/common/win32_common.h | 3 --- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/gfx/common/win32_common.cpp b/gfx/common/win32_common.cpp index 415d83791c..61cafb7717 100644 --- a/gfx/common/win32_common.cpp +++ b/gfx/common/win32_common.cpp @@ -573,20 +573,20 @@ void win32_monitor_init(void) g_quit = false; } -bool win32_monitor_set_fullscreen(unsigned width, unsigned height, +static bool win32_monitor_set_fullscreen(unsigned width, unsigned height, unsigned refresh, char *dev_name) { #ifndef _XBOX DEVMODE devmode; memset(&devmode, 0, sizeof(devmode)); - devmode.dmSize = sizeof(DEVMODE); - devmode.dmPelsWidth = width; - devmode.dmPelsHeight = height; + devmode.dmSize = sizeof(DEVMODE); + devmode.dmPelsWidth = width; + devmode.dmPelsHeight = height; devmode.dmDisplayFrequency = refresh; - devmode.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_DISPLAYFREQUENCY; + devmode.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_DISPLAYFREQUENCY; - RARCH_LOG("[WGL]: Setting fullscreen to %ux%u @ %uHz on device %s.\n", + RARCH_LOG("Setting fullscreen to %ux%u @ %uHz on device %s.\n", width, height, refresh, dev_name); return ChangeDisplaySettingsEx(dev_name, &devmode, NULL, CDS_FULLSCREEN, NULL) == DISP_CHANGE_SUCCESSFUL; diff --git a/gfx/common/win32_common.h b/gfx/common/win32_common.h index ae4ca28779..552be27fd1 100644 --- a/gfx/common/win32_common.h +++ b/gfx/common/win32_common.h @@ -65,9 +65,6 @@ bool win32_set_video_mode(void *data, unsigned width, unsigned height, bool fullscreen); -bool win32_monitor_set_fullscreen(unsigned width, - unsigned height, unsigned refresh, char *dev_name); - #ifndef _XBOX RETRO_BEGIN_DECLS