|
From: Geert U. <ge...@li...> - 2003-01-10 14:11:57
|
On 10 Jan 2003, Antonino Daplas wrote:
> For putcs and putc, I just made it mandatory that when one character is
> to be out of bounds, it just won't get drawn. A cleaner implementation
> is, of course, to clip the destination window + the passed bitmap.
Except for the geek value, why would it be cleaner to draw half of a character
near the border?
> Do we need to clip the fb_set_logo() too?
I don't think so. The current code already draws only the number of logos that
really fit on the screen. Unless you want to see half penguins as well :-)
> The patch may be a bit difficult to swallow because it is pretty much
> invasive and not so clean :-(, so it's okay if you don't take it.
> But it has the advantage of clipping the coordinates for hardware that
> does not support clipping (like the i810fb). For hardware that does
> support clipping, or wants to implement its own clipping code, we require
> a 'caps' (capabilities) field in fb_info or fb_fix_screeninfo. This is
> checked first and if set, the default clipping code is bypassed.
I prefer fb_info, since user space doesn't need to know.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@li...
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
|