Setting my VGA screen to primary (1024x768) and TV/Mediaportal to secondary (1024x576) I get problems with initial black video and GUI overscan setting doesn't work.
Looking through the logs i found:
In fullscreen mode I don't understand why Client size and Screen size ever should differ.
Just stopping and restarting video writes this in the log instead:
It seems like setting the Bounds property is not enough to set the size of the client, so I propose the following addition:
It works for me, and I have no problem with initial black video anymore on secondary screen.
Regards
/Blomman
Looking through the logs i found:
Code:
D3D: Starting fullscreen
D3D: Client size: 1024x603 - Screen: 1024x576
In fullscreen mode I don't understand why Client size and Screen size ever should differ.
Just stopping and restarting video writes this in the log instead:
Code:
D3D: Client size: 1024x576 - Screen: 1024x576
It seems like setting the Bounds property is not enough to set the size of the client, so I propose the following addition:
Code:
Index: xbmc/d3dapp.cs
===================================================================
--- xbmc/d3dapp.cs (revision 25291)
+++ xbmc/d3dapp.cs (working copy)
@@ -427,6 +427,7 @@
this.Menu = null;
Rectangle newBounds = GUIGraphicsContext.currentScreen.Bounds;
this.Bounds = newBounds;
[COLOR="Red"]+ this.ClientSize = GUIGraphicsContext.currentScreen.Bounds.Size;[/COLOR]
//GUIGraphicsContext.DX9Device.PresentationParameters.BackBufferWidth=Screen.PrimaryScreen.Bounds.Width;
//GUIGraphicsContext.DX9Device.PresentationParameters.BackBufferHeight=Screen.PrimaryScreen.Bounds.Height;
Log.Info("D3D: Client size: {0}x{1} - Screen: {2}x{3}",
It works for me, and I have no problem with initial black video anymore on secondary screen.
Regards
/Blomman
Sweden