Mercurial > dwindows
diff win/dw.c @ 1268:148daf522080
Fixed on Windows sqrt() issue due to missing header...
Also swapped points to work like other platforms.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 25 Oct 2011 12:33:09 +0000 |
parents | 61d0c5f84644 |
children | 24f1dc19601d |
line wrap: on
line diff
--- a/win/dw.c Tue Oct 25 12:12:21 2011 +0000 +++ b/win/dw.c Tue Oct 25 12:33:09 2011 +0000 @@ -19,6 +19,7 @@ #include <stdio.h> #include <process.h> #include <time.h> +#include <math.h> #include "dw.h" #include "XBrowseForFolder.h" @@ -8845,7 +8846,7 @@ oldBrush = SelectObject( hdcPaint, TlsGetValue(_hBrush) ); oldPen = SelectObject( hdcPaint, TlsGetValue(_hPen) ); - Arc(hdcPaint, xorigin-r, yorigin-r, xorigin+r, yorigin+r, x1, y1, x2, y2); + Arc(hdcPaint, xorigin-r, yorigin-r, xorigin+r, yorigin+r, x2, y2, x1, y1); SelectObject( hdcPaint, oldBrush ); SelectObject( hdcPaint, oldPen );