Author: greatlrd Date: Sun Dec 10 11:11:08 2006 New Revision: 25111
URL: http://svn.reactos.org/svn/reactos?rev=25111&view=rev Log: Remove more of createsurface hack for primary surface.
Modified: trunk/reactos/dll/directx/ddraw/main/ddraw_main.c
Modified: trunk/reactos/dll/directx/ddraw/main/ddraw_main.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/main/ddra... ============================================================================== --- trunk/reactos/dll/directx/ddraw/main/ddraw_main.c (original) +++ trunk/reactos/dll/directx/ddraw/main/ddraw_main.c Sun Dec 10 11:11:08 2006 @@ -263,13 +263,10 @@ { 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;