Author: greatlrd
Date: Wed Nov 19 13:04:19 2008
New Revision: 37463
URL:
http://svn.reactos.org/svn/reactos?rev=37463&view=rev
Log:
Fixed one smaller bug in hel DdLock and DdUnlock now the lock and the unlcok using the
windows hdc to draw the data on
Modified:
branches/reactx/reactos/dll/directx/ddraw/Surface/callbacks_surf_hel.c
Modified: branches/reactx/reactos/dll/directx/ddraw/Surface/callbacks_surf_hel.c
URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/directx/ddra…
==============================================================================
--- branches/reactx/reactos/dll/directx/ddraw/Surface/callbacks_surf_hel.c [iso-8859-1]
(original)
+++ branches/reactx/reactos/dll/directx/ddraw/Surface/callbacks_surf_hel.c [iso-8859-1]
Wed Nov 19 13:04:19 2008
@@ -82,8 +82,8 @@
/* ToDo add support for dwFlags */
- /* Get our hdc for the surface */
- hDC = (HDC)lpLockData->lpDDSurface->lpSurfMore->lpDD_lcl->hDC;
+ /* Get our hdc for the active windows */
+ hDC = GetDC(lpLockData->lpDDSurface->lpSurfMore->lpDD_lcl->hFocusWnd);
if (hDC != NULL)
{
@@ -202,8 +202,8 @@
DX_WINDBG_trace();
- /* Get our hdc for the surface */
- hDC = (HDC) lpUnLockData->lpDDSurface->lpSurfMore->lpDD_lcl->hDC;
+ /* Get our hdc for the active windows */
+ hDC = GetDC(lpUnLockData->lpDDSurface->lpSurfMore->lpDD_lcl->hFocusWnd);
if (hDC != NULL)
{