[mythtv-commits] Ticket #9578: Increase arbitrary MAX_DISPLAY_CHANS in guidegrid.h
MythTV
noreply at mythtv.org
Sun Feb 13 05:14:04 UTC 2011
#9578: Increase arbitrary MAX_DISPLAY_CHANS in guidegrid.h
----------------------------------------------+----------------------------
Reporter: Andrew Leech <andrew@…> | Type: Patch -
Status: new | Feature
Milestone: unknown | Priority: minor
Version: 0.24-fixes | Component: MythTV -
Keywords: | General
| Severity: low
| Ticket locked: 0
----------------------------------------------+----------------------------
The maximum number of channels visible on screen in guidegrid is locked to
12 by a define in guidegrid.h[[BR]]
On larger TV's at higher resolutions, more channels than this are
certainly easily readable. Also, the number of channels is set in the
theme separately.[[BR]]
The MAX_DISPLAY_CHANS is used to create an array so it's easier to keep it
there rather than trying to dynamically create the array at runtime based
on theme settings, but it would be good to set it significantly higher and
allow the theme to set a useful size for use.
{{{
--- a/mythtv/programs/mythfrontend/guidegrid.h
+++ b/mythtv/programs/mythfrontend/guidegrid.h
@@ -28,7 +28,7 @@ class QTimer;
class MythUIButtonList;
class MythUIGuideGrid;
-#define MAX_DISPLAY_CHANS 12
+#define MAX_DISPLAY_CHANS 99
#define MAX_DISPLAY_TIMES 36
typedef vector<PixmapChannel> pix_chan_list_t;
}}}
--
Ticket URL: <http://code.mythtv.org/trac/ticket/9578>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list