PERFORCE change 213988 for review
Brooks Davis
brooks at FreeBSD.org
Fri Jul 6 18:17:30 UTC 2012
http://p4web.freebsd.org/@@213988?ac=10
Change 213988 by brooks at brooks_ecr_current on 2012/07/06 18:16:34
Add a fb_fill_region() function to fill part of the screen.
Affected files ...
.. //depot/projects/ctsrd/beribsd/src/ctsrd-lib/libde4tc/de4tc.c#4 edit
.. //depot/projects/ctsrd/beribsd/src/ctsrd-lib/libde4tc/de4tc.h#4 edit
Differences ...
==== //depot/projects/ctsrd/beribsd/src/ctsrd-lib/libde4tc/de4tc.c#4 (text+ko) ====
@@ -211,6 +211,17 @@
void
+fb_fill_region(u_int32_t colour, int x, int y, int w, int h)
+{
+ int col, row;
+
+ for (row = 0; row < h; row++)
+ for (col = 0; col < w; col++)
+ pfbp[(y + row) * fb_width + (x + col)] = colour;
+}
+
+
+void
fb_post(u_int32_t *buf)
{
int addr;
==== //depot/projects/ctsrd/beribsd/src/ctsrd-lib/libde4tc/de4tc.h#4 (text+ko) ====
@@ -50,6 +50,7 @@
u_int32_t fb_colour(int r, int g, int b);
void fb_putpixel(int px, int py, int colour);
void fb_fill(int col);
+void fb_fill_region(u_int32_t colour, int x, int y, int w, int h);
void fb_post(u_int32_t *buf);
void fb_post_region(u_int32_t *buf, int x, int y, int w, int h);
void fb_blend(int blend_text_bg, int blend_text_fg, int blend_pixel, int wash);
More information about the p4-projects
mailing list