clipping
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · Antonino Daplas
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?
Quoted 1 line
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 :-)
Quoted 7 lines
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_infoorfb_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 -- [email protected]
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:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com