[mythtv] [PATCH] setup height/width is wrong for setup on a Xinerama screen

David myth at dgreaves.com
Sat May 29 10:04:30 EDT 2004


In Mythcontext the application height/width is wrong for setup on a 
Xinerama screen.

The logic appears to want to be:
Start as 0
Try 'Settings'
if not, try Displaywidth/height (Xinerama aware)
if not, try QtApplication->desktop width/height
if <160x160, fallback to 640x480

It was:
Start as 0
Try 'Settings'
if not, try QtApplication->desktop width/height
if not, try Displaywidth/height (Xinerama aware)
if not, try QtApplication->desktop width/height
if <160x160, fallback to 640x480

David



diff -u -r1.121 mythcontext.cpp
--- libs/libmyth/mythcontext.cpp        25 Apr 2004 14:59:40 -0000      
1.121
+++ libs/libmyth/mythcontext.cpp        29 May 2004 13:57:34 -0000
@@ -640,8 +640,8 @@
     d->m_xbase = x + GetNumSetting("GuiOffsetX", 0);
     d->m_ybase = y + GetNumSetting("GuiOffsetY", 0);

-    int height = GetNumSetting("GuiHeight", d->m_height);
-    int width = GetNumSetting("GuiWidth", d->m_width);
+    int height = GetNumSetting("GuiHeight", h);
+    int width = GetNumSetting("GuiWidth", w);

     if (w != 0 && h != 0 && height == 0 && width == 0)
     {



More information about the mythtv-dev mailing list