Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/fb Modified Files: evas_fb_main.c Log Message: patch for fb engine from Simon Poole <[EMAIL PROTECTED]> :) =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/engines/fb/evas_fb_main.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- evas_fb_main.c 11 Apr 2005 15:45:12 -0000 1.5 +++ evas_fb_main.c 14 Apr 2005 17:38:49 -0000 1.6 @@ -224,9 +224,10 @@ { if ((modes[i].width == width) && (modes[i].height == height) && + (!depth || modes[i].fb_var.bits_per_pixel == depth) && (modes[i].refresh == refresh)) { - modes[i].fb_var.bits_per_pixel = depth; + if (depth) modes[i].fb_var.bits_per_pixel = depth; if (ioctl(fb, FBIOPUT_VSCREENINFO, &modes[i].fb_var) == -1) perror("ioctl FBIOPUT_VSCREENINFO"); @@ -295,9 +296,10 @@ { if ((modes[i].width == width) && (modes[i].height == height) && + (!depth || modes[i].fb_var.bits_per_pixel == depth) && (modes[i].refresh == refresh)) { - modes[i].fb_var.bits_per_pixel = depth; + if (depth) modes[i].fb_var.bits_per_pixel = depth; if (ioctl(fb, FBIOPUT_VSCREENINFO, &modes[i].fb_var) == -1) perror("ioctl FBIOPUT_VSCREENINFO"); ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs