[mythtv] [PATCH] OSD menu wrapping
Kevin Kuphal
kuphal at dls.net
Mon Apr 18 00:47:45 UTC 2005
This patch allows the OSD menus to wrap vertically. Pressing UP at the
top will wrap to the bottom and visa-versa. I find this most useful on
the pop-up for the end of a recording to get to the Delete option
without going down 3 times.
Kevin
-------------- next part --------------
Index: mythtv/libs/libmythtv/osdtypes.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/osdtypes.cpp,v
retrieving revision 1.58
diff -n -u -r1.58 osdtypes.cpp
--- mythtv/libs/libmythtv/osdtypes.cpp 1 Apr 2005 02:38:31 -0000 1.58
+++ mythtv/libs/libmythtv/osdtypes.cpp 18 Apr 2005 00:43:17 -0000
@@ -1498,12 +1498,16 @@
{
if (m_curposition > m_offset)
m_curposition--;
+ else if (m_curposition == m_offset)
+ m_curposition = m_numpositions - 1;
}
void OSDTypePositionIndicator::PositionDown(void)
{
if (m_curposition < m_numpositions - 1)
m_curposition++;
+ else if (m_curposition == m_numpositions - 1)
+ m_curposition = m_offset;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the mythtv-dev
mailing list