Date: Fri, 6 Jul 2012 18:17:29 GMT From: Brooks Davis <brooks@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 213988 for review Message-ID: <201207061817.q66IHTtJ073064@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@213988?ac=10 Change 213988 by brooks@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207061817.q66IHTtJ073064>