r5314 vince - in /branches/vince/netsurf-fb: Makefile.sources framebuffer/fb_16bpp_plotters.c

netsurf at semichrome.net netsurf at semichrome.net
Sun Sep 14 15:28:12 BST 2008


Author: vince
Date: Sun Sep 14 09:28:12 2008
New Revision: 5314

URL: http://source.netsurf-browser.org?rev=5314&view=rev
Log:
add rectangle plot to 16bpp plotters

Modified:
    branches/vince/netsurf-fb/Makefile.sources
    branches/vince/netsurf-fb/framebuffer/fb_16bpp_plotters.c

Modified: branches/vince/netsurf-fb/Makefile.sources
URL: http://source.netsurf-browser.org/branches/vince/netsurf-fb/Makefile.sources?rev=5314&r1=5313&r2=5314&view=diff
==============================================================================
--- branches/vince/netsurf-fb/Makefile.sources (original)
+++ branches/vince/netsurf-fb/Makefile.sources Sun Sep 14 09:28:12 2008
@@ -90,7 +90,7 @@
 
 # S_FRAMEBUFFER are sources purely for the framebuffer build
 S_FRAMEBUFFER := fb_gui.c tree.c history.c hotlist.c fb_schedule.c thumbnail.c \
-	misc.c fb_bitmap.c fb_font.c font_8x16.c fb_filetype.c utf8.c login.c \
+	misc.c fb_bitmap.c fb_font.c font_8x16.c fb_filetype.c login.c \
 	fb_plotters.c fb_1bpp_plotters.c fb_8bpp_plotters.c \
 	fb_16bpp_plotters.c fb_32bpp_plotters.c
 S_FRAMEBUFFER := $(addprefix framebuffer/,$(S_FRAMEBUFFER))

Modified: branches/vince/netsurf-fb/framebuffer/fb_16bpp_plotters.c
URL: http://source.netsurf-browser.org/branches/vince/netsurf-fb/framebuffer/fb_16bpp_plotters.c?rev=5314&r1=5313&r2=5314&view=diff
==============================================================================
--- branches/vince/netsurf-fb/framebuffer/fb_16bpp_plotters.c (original)
+++ branches/vince/netsurf-fb/framebuffer/fb_16bpp_plotters.c Sun Sep 14 09:28:12 2008
@@ -37,13 +37,6 @@
         return (uint16_t *)(g->ptr + (y * g->linelen) + (x<<1));
 }
 
-static bool fb_16bpp_rectangle(int x0, int y0, int width, int height,
-			int line_width, colour c, bool dotted, bool dashed)
-{
-        LOG(("%d, %d, %d, %d, %d, 0x%lx, %d, %d",
-             x0,y0,width,height,line_width,c,dotted,dashed));
-	return true;
-}
 
 #define SIGN(x)  ((x<0) ?  -1  :  ((x>0) ? 1 : 0))
 
@@ -140,6 +133,19 @@
 
 
 
+	return true;
+}
+
+static bool fb_16bpp_rectangle(int x0, int y0, int width, int height,
+			int line_width, colour c, bool dotted, bool dashed)
+{
+        LOG(("%d, %d, %d, %d, %d, 0x%lx, %d, %d",
+             x0,y0,width,height,line_width,c,dotted,dashed));
+
+        fb_16bpp_line(x0, y0, x0 + width, y0, line_width, c, dotted, dashed);
+        fb_16bpp_line(x0, y0 + height, x0 + width, y0 + height, line_width, c, dotted, dashed);
+        fb_16bpp_line(x0, y0, x0, y0 + height, line_width, c, dotted, dashed);
+        fb_16bpp_line(x0 + width, y0, x0 + width, y0 + height, line_width, c, dotted, dashed);
 	return true;
 }
 




More information about the netsurf-commits mailing list