[ros-diffs] [greatlrd] 37463: Fixed one smaller bug in hel DdLock and DdUnlock now the lock and the unlcok using the windows hdc to draw the data on
greatlrd at svn.reactos.org
greatlrd at svn.reactos.org
Wed Nov 19 20:04:19 CET 2008
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/ddraw/Surface/callbacks_surf_hel.c?rev=37463&r1=37462&r2=37463&view=diff
==============================================================================
--- 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)
{
More information about the Ros-diffs
mailing list