[ros-diffs] [gedmurphy] 24702: - 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
gedmurphy at svn.reactos.org
gedmurphy at svn.reactos.org
Wed Nov 8 18:37:31 CET 2006
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/imagesoft/imagesoft.rbuild?rev=24702&r1=24701&r2=24702&view=diff
==============================================================================
--- 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/imagesoft/imgedwnd.c?rev=24702&r1=24701&r2=24702&view=diff
==============================================================================
--- 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);
}
+
More information about the Ros-diffs
mailing list