[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#378402: (no subject)



Looks like this bug is fixed in upstream.

http://bugs.kde.org/show_bug.cgi?id=73519

M  +6 -2      vidmode.cpp   
 
 
 --- branches/KDE/3.5/kdenetwork/krdc/vidmode.cpp #571506:571507 
 @@ -38,7 +38,9 @@ 
   if (!XF86VidModeQueryExtension(dpy, &eventB, &errorB)) 
   return; 
   
 - XF86VidModeGetAllModeLines(dpy,oldResolution.screen,&modecount, &modes); 
 + if (!XF86VidModeGetAllModeLines(dpy, oldResolution.screen, &modecount, 
&modes)) 
 + return; 
 + 
   for (int i = 0; i < modecount; i++) { 
   int w = (*modes[i]).hdisplay; 
   int h = (*modes[i]).vdisplay; 
 @@ -69,7 +71,9 @@ 
   if (!XF86VidModeQueryExtension(dpy, &eventB, &errorB)) 
   return Resolution(); 
   
 - XF86VidModeGetAllModeLines(dpy,screen,&modecount, &modes); 
 + if (!XF86VidModeGetAllModeLines(dpy,screen,&modecount, &modes)) 
 + return Resolution(); 
 + 
   int cw = (*modes[0]).hdisplay; 
   int ch = (*modes[0]).vdisplay; 
   nx = cw; 
-- 
Bob Tanner <tanner@real-time.com>          | Phone : (952)943-8700
http://www.real-time.com, Minnesota, Linux | Fax   : (952)943-8500
Key fingerprint = AB15 0BDF BCDE 4369 5B42  1973 7CF1 A709 2CC1 B288

Attachment: pgpGU_YB6nyL6.pgp
Description: PGP signature


Reply to: