From: James S. <jsi...@li...> - 2001-03-12 20:27:45
|
>I think we should differentiate between pattern expansion fills and image >writes (as said before). Also some card offer both a limited size pattern >fill (mostly 32x32 i guess), but also a more generic patterned rendering, >where any kind of bitmap can be expanded. (well a rectangular area of >anysize). This would be faster by a factor of (depth of framebuffer) that >using image writed for monochrome fonts. No problem. I think the api is felxiable enough. Example psuedo code: struct fb_image { __u32 width; /* Size of image */ __u32 height; __u16 x; /* Where to place image */ __u16 y; __u32 fg_color; /* Only used when a mono bitmap */ __u32 bg_color; __u8 depth; /* Dpeth of the image */ char *data; /* Pointer to image data */ }; xxxfb_drawimage(struct fb_info *p, struct fb_image *image) { if (image->depth == 1) { /* Use pattern fill */ } else { /* Draw a color image */ } } MS: (n) 1. A debilitating and surprisingly widespread affliction that renders the sufferer barely able to perform the simplest task. 2. A disease. James Simmons [jsi...@li...] ____/| fbdev/console/gfx developer \ o.O| http://www.linux-fbdev.org =(_)= http://linuxgfx.sourceforge.net U http://linuxconsole.sourceforge.net |