Author: gedmurphy
Date: Wed Nov 8 20:37:30 2006
New Revision: 24702
URL:
http://svn.reactos.org/svn/reactos?rev=24702&view=rev
Log:
- fix drawing on the memory device to be the same as the screen, not that it really
matters as it's just test code, but it's always nice to have correct test code ;)
- change typo for compilation unit name
Modified:
trunk/reactos/base/applications/imagesoft/imagesoft.rbuild
trunk/reactos/base/applications/imagesoft/imgedwnd.c
Modified: trunk/reactos/base/applications/imagesoft/imagesoft.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/imagesof…
==============================================================================
--- trunk/reactos/base/applications/imagesoft/imagesoft.rbuild (original)
+++ trunk/reactos/base/applications/imagesoft/imagesoft.rbuild Wed Nov 8 20:37:30 2006
@@ -15,7 +15,7 @@
<library>comctl32</library>
<library>shell32</library>
<library>comdlg32</library>
- <compilationunit name="about.c">
+ <compilationunit name="unit.c">
<file>about.c</file>
<file>floatwindow.c</file>
<file>imageprop.c</file>
Modified: trunk/reactos/base/applications/imagesoft/imgedwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/imagesof…
==============================================================================
--- trunk/reactos/base/applications/imagesoft/imgedwnd.c (original)
+++ trunk/reactos/base/applications/imagesoft/imgedwnd.c Wed Nov 8 20:37:30 2006
@@ -333,6 +333,8 @@
hPenOld = SelectObject(hDC,
hPen);
+ SelectObject(Info->hDCMem,
+ hPen);
MoveToEx(hDC,
xMouse,
@@ -355,7 +357,9 @@
xMouse,
yMouse);
- DeleteObject(SelectObject(hDC,
+ SelectObject(hDC,
+ hPenOld);
+ DeleteObject(SelectObject(Info->hDCMem,
hPenOld));
ReleaseDC(Info->hSelf,
@@ -532,3 +536,4 @@
UnregisterClass(szImageEditWndClass,
hInstance);
}
+