From 41059dabf435c7ca33ac3133e4a1adb3fe2fbb0e Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 10 Dec 2006 08:11:08 +0000 Subject: [PATCH] Remove more of createsurface hack for primary surface. svn path=/trunk/; revision=25111 --- reactos/dll/directx/ddraw/main/ddraw_main.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/reactos/dll/directx/ddraw/main/ddraw_main.c b/reactos/dll/directx/ddraw/main/ddraw_main.c index b6e214df236..3da30169a56 100644 --- a/reactos/dll/directx/ddraw/main/ddraw_main.c +++ b/reactos/dll/directx/ddraw/main/ddraw_main.c @@ -263,13 +263,10 @@ HRESULT WINAPI Main_DirectDraw_CreateSurface (LPDIRECTDRAW7 iface, LPDDSURFACEDE { return DDERR_NOTINITIALIZED; } - - /* FIXME : - * This tree line is hack - */ - That->lpLcl->lpGbl->wWidth = 1024; //(WORD)mpModeInfos[0].dwWidth; - That->lpLcl->lpGbl->wHeight = 768; //(WORD)mpModeInfos[0].dwHeight; - That->lpLcl->lpGbl->lPitch = 32; //mpModeInfos[0].lPitch; + + That->lpLcl->lpGbl->wWidth = This->lpLcl->lpGbl->vmiData.dwDisplayWidth; + That->lpLcl->lpGbl->wHeight = This->lpLcl->lpGbl->vmiData.dwDisplayHeight; + That->lpLcl->lpGbl->lPitch = This->lpLcl->lpGbl->vmiData.lDisplayPitch; That->lpLcl->dwFlags = DDRAWISURF_PARTOFPRIMARYCHAIN|DDRAWISURF_HASOVERLAYDATA; That->lpLcl->ddsCaps.dwCaps = pDDSD->ddsCaps.dwCaps;