Author: greatlrd
Date: Sat Nov 29 13:24:40 2008
New Revision: 37738
URL:
http://svn.reactos.org/svn/reactos?rev=37738&view=rev
Log:
sorry forget cleanup the code a bit in CReatesurface
Modified:
branches/reactx/reactos/dll/win32/gdi32/misc/gdientryhelgl.c
Modified: branches/reactx/reactos/dll/win32/gdi32/misc/gdientryhelgl.c
URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/win32/gdi32/…
==============================================================================
--- branches/reactx/reactos/dll/win32/gdi32/misc/gdientryhelgl.c [iso-8859-1] (original)
+++ branches/reactx/reactos/dll/win32/gdi32/misc/gdientryhelgl.c [iso-8859-1] Sat Nov 29
13:24:40 2008
@@ -445,14 +445,12 @@
lcl->lpGbl->wWidth = desc2.dwWidth;
lcl->lpGbl->wHeight = desc2.dwHeight;
lcl->lpGbl->dwLinearSize = desc2.dwLinearSize;
- RtlCopyMemory(&lcl->lpGbl->ddpfSurface, &desc2.ddpfPixelFormat,
sizeof(DDPIXELFORMAT))
+ RtlCopyMemory(&lcl->lpGbl->ddpfSurface, &desc2.ddpfPixelFormat,
sizeof(DDPIXELFORMAT));
/* Get the video mode from WineD3D - we will need it */
- hr = IWineD3DDevice_GetDisplayMode(pWineD3DDevice, 0, &Mode);
- if(FAILED(hr))
+ hrc = IWineD3DDevice_GetDisplayMode(pWineD3DDevice, 0, &Mode);
+ if(FAILED(hrc))
{
-
- ERR("Failed to read display mode from wined3d\n");
if ((lcl->dwFlags & DDRAWISURF_HASPIXELFORMAT) == 0)
{
@@ -527,7 +525,7 @@
}
}
- if (pCreateSurface->ddRVal = DD_OK)
+ if (pCreateSurface->ddRVal == DD_OK)
{
@@ -551,7 +549,6 @@
{
LPDDRAWI_DDRAWSURFACE_LCL lcl = pCreateSurface->lplpSList[i];
- pWineD3DDevice->CreateSurface(
hrc = IWineD3DDevice_CreateSurface(pWineD3DDevice,
Mode.Width,
Mode.Height,