Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MP1-4781V6 : madVR V303 (Fix wrong video size when toggle fullscreen …
…to windowed)
  • Loading branch information
Sebastiii committed Jun 19, 2017
1 parent 099ccc4 commit 5069267
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mediaportal/Core/Player/VMR9.cs
Expand Up @@ -1058,12 +1058,12 @@ public void ProcessMadVrOsd()
GUIWindowManager.SendThreadMessage(msg);
}
}
if (GUIGraphicsContext.ForceMadVRRefresh)
if (GUIGraphicsContext.ForceMadVRRefresh)
{
GUIMessage message = new GUIMessage(GUIMessage.MessageType.GUI_MSG_ONDISPLAYMADVRCHANGED, 0, 0, 0, 0, 0, null);
GUIWindowManager.SendMessage(message);
GUIGraphicsContext.ForceMadVRFirstStart = false;
Log.Debug("VMR9: resize OSD/Screen when resolution change for madVR");
Log.Debug("VMR9: resize OSD/Screen when resolution change for madVR");
}
}
}
Expand Down
9 changes: 7 additions & 2 deletions mediaportal/MediaPortal.Application/D3D.cs
Expand Up @@ -508,9 +508,14 @@ protected void ToggleFullscreen()
if (GUIGraphicsContext.VideoRenderer == GUIGraphicsContext.VideoRendererType.madVR)
{
GUIGraphicsContext.ForceMadVRRefresh3D = true;
GUIGraphicsContext.ForceMadVRRefresh = true;
}

// Force OSD resize when no video has started to display OSD GUI correctly
if (GUIGraphicsContext.VideoRenderer == GUIGraphicsContext.VideoRendererType.madVR &&
!GUIGraphicsContext.InVmr9Render)
{
GUIGraphicsContext.ForceMadVRRefresh = true;
}

// Reset DialogMenu to avoid freeze when going to fullscreen/windowed
var dialogMenu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU);
if (dialogMenu != null &&
Expand Down

0 comments on commit 5069267

Please sign in to comment.