Skip to content

Commit

Permalink
Merge pull request xbmc#12308 from FernetMenta/toggle
Browse files Browse the repository at this point in the history
fix toggle fullscreen
  • Loading branch information
fritsch authored Jun 16, 2017
2 parents d934662 + 3b26aa4 commit f1f7f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ bool CApplication::OnEvent(XBMC_Event& newEvent)
case XBMC_VIDEORESIZE:
if (g_windowManager.Initialized())
{
g_Windowing.SetWindowResolution(newEvent.resize.w, newEvent.resize.h);
if (!g_advancedSettings.m_fullScreen)
{
g_Windowing.SetWindowResolution(newEvent.resize.w, newEvent.resize.h);
g_graphicsContext.SetVideoResolution(RES_WINDOW, true);
CServiceBroker::GetSettings().SetInt(CSettings::SETTING_WINDOW_WIDTH, newEvent.resize.w);
CServiceBroker::GetSettings().SetInt(CSettings::SETTING_WINDOW_HEIGHT, newEvent.resize.h);
Expand Down

0 comments on commit f1f7f8e

Please sign in to comment.