Skip to content

Commit

Permalink
WinRT: minor function and variable name cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLudwig committed Aug 27, 2013
1 parent 065b2cf commit 80abfc4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/core/winrt/SDL_winrtapp.cpp
Expand Up @@ -300,12 +300,12 @@ void SDL_WinRTApp::OnWindowSizeChanged(CoreWindow^ sender, WindowSizeChangedEven
// window-resize event as it appeared the SDL window didn't change
// size, and the Direct3D 11.1 renderer wouldn't resize its swap
// chain.
SDL_DisplayMode newDisplayMode = GetMainDisplayMode();
m_sdlVideoDevice->displays[0].current_mode = newDisplayMode;
m_sdlVideoDevice->displays[0].desktop_mode = newDisplayMode;
m_sdlVideoDevice->displays[0].display_modes[0] = newDisplayMode;
SDL_DisplayMode resizedDisplayMode = CalcCurrentDisplayMode();
m_sdlVideoDevice->displays[0].current_mode = resizedDisplayMode;
m_sdlVideoDevice->displays[0].desktop_mode = resizedDisplayMode;
m_sdlVideoDevice->displays[0].display_modes[0] = resizedDisplayMode;

m_sdlWindowData->sdlWindow->fullscreen_mode = newDisplayMode;
m_sdlWindowData->sdlWindow->fullscreen_mode = resizedDisplayMode;

// Send the window-resize event to the rest of SDL, and to apps:
const int windowWidth = (int) ceil(args->Size.Width);
Expand Down Expand Up @@ -469,7 +469,7 @@ void SDL_WinRTApp::OnResuming(Platform::Object^ sender, Platform::Object^ args)
}
}

SDL_DisplayMode SDL_WinRTApp::GetMainDisplayMode()
SDL_DisplayMode SDL_WinRTApp::CalcCurrentDisplayMode()
{
// Create an empty, zeroed-out display mode:
SDL_DisplayMode mode;
Expand Down
2 changes: 1 addition & 1 deletion src/core/winrt/SDL_winrtapp.h
Expand Up @@ -16,7 +16,7 @@ ref class SDL_WinRTApp sealed : public Windows::ApplicationModel::Core::IFramewo

internal:
// SDL-specific methods
SDL_DisplayMode GetMainDisplayMode();
SDL_DisplayMode CalcCurrentDisplayMode();
void PumpEvents();
const SDL_WindowData * GetSDLWindowData() const;
bool HasSDLWindowData() const;
Expand Down
2 changes: 1 addition & 1 deletion src/video/winrt/SDL_winrtvideo.cpp
Expand Up @@ -134,7 +134,7 @@ WINRT_VideoInit(_THIS)
static int
WINRT_InitModes(_THIS)
{
SDL_DisplayMode mode = SDL_WinRTGlobalApp->GetMainDisplayMode();
SDL_DisplayMode mode = SDL_WinRTGlobalApp->CalcCurrentDisplayMode();
if (SDL_AddBasicVideoDisplay(&mode) < 0) {
return -1;
}
Expand Down

0 comments on commit 80abfc4

Please sign in to comment.