diff win/dw.c @ 1270:24f1dc19601d

Implemented DW_DRAW_FULL on Windows and implemented DW_DRAW_FILL for ellipses. Fixed not passing DW_DRAW_FULL in the test program.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 30 Oct 2011 01:41:14 +0000
parents 148daf522080
children 0b34e2cf0706
line wrap: on
line diff
--- a/win/dw.c	Sun Oct 30 00:40:22 2011 +0000
+++ b/win/dw.c	Sun Oct 30 01:41:14 2011 +0000
@@ -8843,10 +8843,16 @@
       hdcPaint = pixmap->hdc;
    else
       return;
-      
-   oldBrush = SelectObject( hdcPaint, TlsGetValue(_hBrush) );
+     
+   if(flags & DW_DRAW_FILL)     
+      oldBrush = SelectObject( hdcPaint, TlsGetValue(_hBrush) );
+   else
+      oldBrush = SelectObject( hdcPaint, GetStockObject(HOLLOW_BRUSH) );
    oldPen = SelectObject( hdcPaint, TlsGetValue(_hPen) );
-   Arc(hdcPaint, xorigin-r, yorigin-r, xorigin+r, yorigin+r, x2, y2, x1, y1);
+   if(flags & DW_DRAW_FULL)
+      Ellipse(hdcPaint, x1, y1, x2, y2);
+   else
+      Arc(hdcPaint, xorigin-r, yorigin-r, xorigin+r, yorigin+r, x2, y2, x1, y1);
    SelectObject( hdcPaint, oldBrush );
    SelectObject( hdcPaint, oldPen );