From owner-p4-projects@FreeBSD.ORG Fri Jul 6 18:17:30 2012 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id CC3F51065679; Fri, 6 Jul 2012 18:17:29 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8138B1065676 for ; Fri, 6 Jul 2012 18:17:29 +0000 (UTC) (envelope-from brooks@freebsd.org) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [IPv6:2001:4f8:fff6::2d]) by mx1.freebsd.org (Postfix) with ESMTP id 6AD028FC23 for ; Fri, 6 Jul 2012 18:17:29 +0000 (UTC) Received: from skunkworks.freebsd.org (localhost [127.0.0.1]) by skunkworks.freebsd.org (8.14.4/8.14.4) with ESMTP id q66IHTcb073067 for ; Fri, 6 Jul 2012 18:17:29 GMT (envelope-from brooks@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.4/8.14.4/Submit) id q66IHTtJ073064 for perforce@freebsd.org; Fri, 6 Jul 2012 18:17:29 GMT (envelope-from brooks@freebsd.org) Date: Fri, 6 Jul 2012 18:17:29 GMT Message-Id: <201207061817.q66IHTtJ073064@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to brooks@freebsd.org using -f From: Brooks Davis To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 213988 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jul 2012 18:17:30 -0000 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);