Author: greatlrd
Date: Sun Dec 16 03:56:43 2007
New Revision: 31269
URL: http://svn.reactos.org/svn/reactos?rev=31269&view=rev
Log:
do not try add DDSD_LPSURFACE when it is already been set
Modified:
trunk/reactos/dll/directx/ddraw/Surface/createsurface.c
Modified: trunk/reactos/dll/directx/ddraw/Surface/createsurface.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Surface/…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Surface/createsurface.c (original)
+++ trunk/reactos/dll/directx/ddraw/Surface/createsurface.c Sun Dec 16 03:56:43 2007
@@ -81,7 +81,8 @@
* if they forget set it, the ddraw will autoamtic
* set it for system memory.
*/
- if ((pDDSD->ddsCaps.dwCaps & DDSCAPS_SYSTEMMEMORY) == DDSCAPS_SYSTEMMEMORY)
+ if ( ((pDDSD->ddsCaps.dwCaps & DDSCAPS_SYSTEMMEMORY) == DDSCAPS_SYSTEMMEMORY) &&
+ ((pDDSD->dwFlags & DDSD_LPSURFACE) != DDSD_LPSURFACE) )
{
pDDSD->dwFlags = pDDSD->dwFlags | DDSD_LPSURFACE;
}
Author: greatlrd
Date: Sun Dec 16 03:46:43 2007
New Revision: 31268
URL: http://svn.reactos.org/svn/reactos?rev=31268&view=rev
Log:
fix a typo
Modified:
trunk/reactos/dll/directx/ddraw/Surface/createsurface.c
Modified: trunk/reactos/dll/directx/ddraw/Surface/createsurface.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Surface/…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Surface/createsurface.c (original)
+++ trunk/reactos/dll/directx/ddraw/Surface/createsurface.c Sun Dec 16 03:46:43 2007
@@ -81,7 +81,7 @@
* if they forget set it, the ddraw will autoamtic
* set it for system memory.
*/
- if ((pDDSD->dwFlags & DDSCAPS_SYSTEMMEMORY) != DDSCAPS_SYSTEMMEMORY)
+ if ((pDDSD->ddsCaps.dwCaps & DDSCAPS_SYSTEMMEMORY) == DDSCAPS_SYSTEMMEMORY)
{
pDDSD->dwFlags = pDDSD->dwFlags | DDSD_LPSURFACE;
}
Author: greatlrd
Date: Sun Dec 16 03:43:22 2007
New Revision: 31267
URL: http://svn.reactos.org/svn/reactos?rev=31267&view=rev
Log:
fix a bug in createsurface
DDSD_LPSURFACE should only be automatic set if we have a system memory surface.
Modified:
trunk/reactos/dll/directx/ddraw/Surface/createsurface.c
Modified: trunk/reactos/dll/directx/ddraw/Surface/createsurface.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Surface/…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Surface/createsurface.c (original)
+++ trunk/reactos/dll/directx/ddraw/Surface/createsurface.c Sun Dec 16 03:43:22 2007
@@ -78,10 +78,10 @@
/*
* program does not need set the DDSD_LPSURFACE,
- * if they forget set it, the ddraw will autoamtic set it.
- *
+ * if they forget set it, the ddraw will autoamtic
+ * set it for system memory.
*/
- if ((pDDSD->dwFlags & DDSD_LPSURFACE) != DDSD_LPSURFACE)
+ if ((pDDSD->dwFlags & DDSCAPS_SYSTEMMEMORY) != DDSCAPS_SYSTEMMEMORY)
{
pDDSD->dwFlags = pDDSD->dwFlags | DDSD_LPSURFACE;
}
Author: greatlrd
Date: Sun Dec 16 03:38:22 2007
New Revision: 31266
URL: http://svn.reactos.org/svn/reactos?rev=31266&view=rev
Log:
fix another bug in createsurface
a program does not need set the flag DDSD_LPSURFACE, if they forget ddraw will automatic set it.
Modified:
trunk/reactos/dll/directx/ddraw/Surface/createsurface.c
Modified: trunk/reactos/dll/directx/ddraw/Surface/createsurface.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Surface/…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Surface/createsurface.c (original)
+++ trunk/reactos/dll/directx/ddraw/Surface/createsurface.c Sun Dec 16 03:38:22 2007
@@ -76,6 +76,16 @@
return DDERR_INVALIDPARAMS;
}
+ /*
+ * program does not need set the DDSD_LPSURFACE,
+ * if they forget set it, the ddraw will autoamtic set it.
+ *
+ */
+ if ((pDDSD->dwFlags & DDSD_LPSURFACE) != DDSD_LPSURFACE)
+ {
+ pDDSD->dwFlags = pDDSD->dwFlags | DDSD_LPSURFACE;
+ }
+
/* FIXME count our how many surface we need */
DxHeapMemAlloc(slist_int, num_of_surf * sizeof( LPDDRAWI_DDRAWSURFACE_INT ) );
Author: fireball
Date: Sun Dec 16 00:46:54 2007
New Revision: 31261
URL: http://svn.reactos.org/svn/reactos?rev=31261&view=rev
Log:
- Delete cm rewrite branch since everything is merged into trunk now.
Removed:
branches/alex-cm-branch/