[mythtv] [PATCH] DisplayRes update
John Patrick Poet
john at BlueSkyTours.com
Wed Sep 1 21:42:50 EDT 2004
Buechler, Mark R wrote:
>When you get a chance, could you also take a look at why when "Separate
>Video Modes" option is selected the GUI size no longer honors GuiWidth and
>GuiHeight options? The GUI honors the offset values but not the sizes.
>
>Thanks, Mark.
>
>
>
Mark,
This was actually a pretty easy fix -- I think. For some reason it does
*not* honor the offsets for me.
Anyway, give the attached patch a try.
John
-------------- next part --------------
Index: libs/libmyth/mythcontext.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmyth/mythcontext.cpp,v
retrieving revision 1.130
diff -d -u -r1.130 mythcontext.cpp
--- libs/libmyth/mythcontext.cpp 19 Aug 2004 02:04:36 -0000 1.130
+++ libs/libmyth/mythcontext.cpp 2 Sep 2004 01:37:43 -0000
@@ -660,7 +660,7 @@
int height = GetNumSetting("GuiHeight", d->m_height);
int width = GetNumSetting("GuiWidth", d->m_width);
- if (display_res)
+ if (height == 0 && width == 0 && display_res)
{
// If using custom, full-screen resolution, note the size
height = display_res->Height();
@@ -668,9 +668,6 @@
}
else
{
- height = GetNumSetting("GuiHeight", d->m_height);
- width = GetNumSetting("GuiWidth", d->m_width);
-
if (w != 0 && h != 0 && height == 0 && width == 0)
{
width = w;
More information about the mythtv-dev
mailing list