Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
1267:87e0969d13bc | 1268:148daf522080 |
---|---|
17 #include <stdlib.h> | 17 #include <stdlib.h> |
18 #include <string.h> | 18 #include <string.h> |
19 #include <stdio.h> | 19 #include <stdio.h> |
20 #include <process.h> | 20 #include <process.h> |
21 #include <time.h> | 21 #include <time.h> |
22 #include <math.h> | |
22 #include "dw.h" | 23 #include "dw.h" |
23 #include "XBrowseForFolder.h" | 24 #include "XBrowseForFolder.h" |
24 | 25 |
25 #ifdef GDIPLUS | 26 #ifdef GDIPLUS |
26 /* GDI+ Headers are not C compatible... so define what we need here instead */ | 27 /* GDI+ Headers are not C compatible... so define what we need here instead */ |
8843 else | 8844 else |
8844 return; | 8845 return; |
8845 | 8846 |
8846 oldBrush = SelectObject( hdcPaint, TlsGetValue(_hBrush) ); | 8847 oldBrush = SelectObject( hdcPaint, TlsGetValue(_hBrush) ); |
8847 oldPen = SelectObject( hdcPaint, TlsGetValue(_hPen) ); | 8848 oldPen = SelectObject( hdcPaint, TlsGetValue(_hPen) ); |
8848 Arc(hdcPaint, xorigin-r, yorigin-r, xorigin+r, yorigin+r, x1, y1, x2, y2); | 8849 Arc(hdcPaint, xorigin-r, yorigin-r, xorigin+r, yorigin+r, x2, y2, x1, y1); |
8849 SelectObject( hdcPaint, oldBrush ); | 8850 SelectObject( hdcPaint, oldBrush ); |
8850 SelectObject( hdcPaint, oldPen ); | 8851 SelectObject( hdcPaint, oldPen ); |
8851 | 8852 |
8852 if(!pixmap) | 8853 if(!pixmap) |
8853 ReleaseDC(handle, hdcPaint); | 8854 ReleaseDC(handle, hdcPaint); |