- fix drawing on the memory device to be the same as the screen, not that it really...
authorGed Murphy <gedmurphy@reactos.org>
Wed, 8 Nov 2006 17:37:30 +0000 (17:37 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Wed, 8 Nov 2006 17:37:30 +0000 (17:37 +0000)
- change typo for compilation unit name

svn path=/trunk/; revision=24702

reactos/base/applications/imagesoft/imagesoft.rbuild
reactos/base/applications/imagesoft/imgedwnd.c

index 77acd55..1b2b02e 100644 (file)
@@ -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>
index 8d8161b..8fa25c0 100644 (file)
@@ -333,6 +333,8 @@ ImageEditWndProc(HWND hwnd,
 
             hPenOld = SelectObject(hDC,
                                    hPen);
+            SelectObject(Info->hDCMem,
+                         hPen);
 
             MoveToEx(hDC,
                      xMouse,
@@ -355,7 +357,9 @@ ImageEditWndProc(HWND hwnd,
                    xMouse,
                    yMouse);
 
-            DeleteObject(SelectObject(hDC,
+            SelectObject(hDC,
+                         hPenOld);
+            DeleteObject(SelectObject(Info->hDCMem,
                                       hPenOld));
 
             ReleaseDC(Info->hSelf,
@@ -532,3 +536,4 @@ UninitImageEditWindowImpl(VOID)
     UnregisterClass(szImageEditWndClass,
                     hInstance);
 }
+