Ticket #5666: patch-gridiconfix.cpp

File patch-gridiconfix.cpp, 516 bytes (added by ylee@…, 13 years ago)

Fixes incorrect icon in program guide under certain conditions in 0.21-fixes

Line 
1--- rpm/SOURCES/mythtv-0.21/libs/libmythtv/guidegrid.cpp~       2008-02-05 20:37:25.000000000 -0800
2+++ rpm/SOURCES/mythtv-0.21/libs/libmythtv/guidegrid.cpp        2009-01-04 07:04:38.000000000 -0800
3@@ -1373,7 +1373,7 @@
4             }
5         }
6 
7-        if ((y == (unsigned int)2 && scrolltype != 1) ||
8+        if ((y == (unsigned int)(desiredDisplayChans / 2) && scrolltype != 1) ||
9             ((signed int)y == m_currentRow && scrolltype == 1))
10         {
11             if (showChannelIcon && !chinfo->icon.isEmpty())