Index: magnify/magnifier.c =================================================================== --- magnify/magnifier.c (revisione 33523) +++ magnify/magnifier.c (copia locale) @@ -167,6 +167,7 @@ { HDC desktopHdc = NULL; HDC HdcStrech; + HDC hMainDC; HANDLE hOld; HBITMAP HbmpStrech; @@ -180,6 +181,7 @@ LONG blitAreaWidth, blitAreaHeight, blitAreaX, blitAreaY; desktopHdc = GetWindowDC (hDesktopWindow); + hMainDC = GetDC(hMainWnd); GetClientRect(hMainWnd, &appRect); GetWindowRect(hDesktopWindow, &R); @@ -257,8 +259,9 @@ rop = NOTSRCCOPY; } + /* Blast the stretched image from memory DC to window DC.*/ StretchBlt( - HdcStrech, + hMainDC, 0, 0, AppWidth, @@ -270,23 +273,12 @@ blitAreaHeight, rop); - /* Blast the image from memory DC to client DC.*/ - BitBlt ( - aDc, - 0 , - 0 , - AppWidth , - AppHeight , - HdcStrech , - 0 , - 0 , - SRCCOPY); - /* Cleanup.*/ SelectObject (HdcStrech, hOld); DeleteObject (HbmpStrech); DeleteDC (HdcStrech); ReleaseDC(hDesktopWindow, desktopHdc); + ReleaseDC(hMainWnd, hMainDC); } //