Re: fbdev upstream
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2004-01-05 14:41:13
On Thu, 25 Dec 2003, Benjamin Herrenschmidt wrote:
On Thu, 2003-12-25 at 07:40, John Zielinski wrote: The idea is that fbcon will use FB_ACTIVATE_FIND instead of FB_ACTIVATE_TEST, which I defined to be "pick a mode suitable for the display based solely on xres/yres). In radeonfb, when you enable the
Can't you overload the `round up if it doesn't fit' rule to achieve this,
instead of by adding FB_ACTIVATE_FIND?
I.e. the procedure becomes:
memset(var, 0, sizeof(*var);
var.xres = wanted_xres;
var.yres = wanted_yres;
var.bits_per_pixel = wanted_bpp;
ioctl(fd, FBIOPUT_VSCREENINFO, &var);
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click