[WIN32SS} So ehm DBG is always defined to 0 or 1 (unless one messes around with it, like in Uniata...) so consistently check with #if and not #ifdef or else debug code gets in the free build.

svn path=/trunk/; revision=69290
This commit is contained in:
Stefan Ginsberg 2015-09-19 14:25:52 +00:00
parent b6e2424ed5
commit 37f1637343
2 changed files with 5 additions and 5 deletions

View file

@ -34,7 +34,7 @@ enum _DCFLAGS
DC_IN_CLONEPDEV = 0x1000, DC_IN_CLONEPDEV = 0x1000,
DC_REDIRECTION = 0x2000, DC_REDIRECTION = 0x2000,
DC_SHAREACCESS = 0x4000, DC_SHAREACCESS = 0x4000,
#ifdef DBG #if DBG
DC_PREPARED = 0x8000 DC_PREPARED = 0x8000
#endif #endif
}; };

View file

@ -556,7 +556,7 @@ DC_vPrepareDCsForBlit(
prcFirst->bottom) ; prcFirst->bottom) ;
} }
#ifdef DBG #if DBG
pdcFirst->fs |= DC_PREPARED; pdcFirst->fs |= DC_PREPARED;
#endif #endif
@ -586,7 +586,7 @@ DC_vPrepareDCsForBlit(
prcSecond->bottom) ; prcSecond->bottom) ;
} }
#ifdef DBG #if DBG
pdcSecond->fs |= DC_PREPARED; pdcSecond->fs |= DC_PREPARED;
#endif #endif
} }
@ -601,7 +601,7 @@ DC_vFinishBlit(PDC pdc1, PDC pdc2)
MouseSafetyOnDrawEnd(pdc1->ppdev); MouseSafetyOnDrawEnd(pdc1->ppdev);
EngReleaseSemaphore(pdc1->ppdev->hsemDevLock); EngReleaseSemaphore(pdc1->ppdev->hsemDevLock);
} }
#ifdef DBG #if DBG
pdc1->fs &= ~DC_PREPARED; pdc1->fs &= ~DC_PREPARED;
#endif #endif
@ -612,7 +612,7 @@ DC_vFinishBlit(PDC pdc1, PDC pdc2)
MouseSafetyOnDrawEnd(pdc2->ppdev); MouseSafetyOnDrawEnd(pdc2->ppdev);
EngReleaseSemaphore(pdc2->ppdev->hsemDevLock); EngReleaseSemaphore(pdc2->ppdev->hsemDevLock);
} }
#ifdef DBG #if DBG
pdc2->fs &= ~DC_PREPARED; pdc2->fs &= ~DC_PREPARED;
#endif #endif
} }