Magellan Linux

Contents of /trunk/clanlib/patches/clanlib-0.7.8-refreshfix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (show annotations) (download)
Tue May 8 20:06:05 2007 UTC (17 years ago) by niro
File size: 435 byte(s)
-import

1 --- Sources/Display/display_mode.cpp.original 2006-03-26 21:06:33.000000000 +0200
2 +++ Sources/Display/display_mode.cpp 2006-03-26 21:08:30.000000000 +0200
3 @@ -117,6 +117,8 @@
4
5 for (int i = 0; i < nmodes; i++)
6 {
7 + if (!vmodes[i]->htotal || !vmodes[i]->vtotal)
8 + continue;
9 if ((vmodes[i]->flags) & V_DBLSCAN)
10 refresh_rate = vmodes[i]->dotclock * 500 / (vmodes[i]->htotal * vmodes[i]->vtotal);
11 else