mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 12:54:02 +00:00
[WIN32K]
Remove a useless if in cliprgn.c Patch by Thomas Faber <thfabba at gmx dot de> See issue #6015 for more details. svn path=/trunk/; revision=51129
This commit is contained in:
parent
cd1a61c18f
commit
4732a3af3d
1 changed files with 3 additions and 10 deletions
|
@ -26,20 +26,13 @@ int FASTCALL
|
||||||
CLIPPING_UpdateGCRegion(DC* Dc)
|
CLIPPING_UpdateGCRegion(DC* Dc)
|
||||||
{
|
{
|
||||||
PROSRGNDATA CombinedRegion;
|
PROSRGNDATA CombinedRegion;
|
||||||
HRGN hRgnVis = Dc->prgnVis->BaseObject.hHmgr;
|
HRGN hRgnVis;
|
||||||
|
|
||||||
// would prefer this, but the rest of the code sucks
|
// would prefer this, but the rest of the code sucks
|
||||||
// ASSERT(Dc->rosdc.hGCClipRgn);
|
// ASSERT(Dc->rosdc.hGCClipRgn);
|
||||||
// ASSERT(Dc->rosdc.hClipRgn);
|
// ASSERT(Dc->rosdc.hClipRgn);
|
||||||
if (!Dc->prgnVis)
|
ASSERT(Dc->prgnVis);
|
||||||
{
|
|
||||||
DPRINT1("Warning, prgnVis is NULL!\n");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
hRgnVis = Dc->prgnVis->BaseObject.hHmgr;
|
hRgnVis = Dc->prgnVis->BaseObject.hHmgr;
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (Dc->rosdc.hGCClipRgn == NULL)
|
if (Dc->rosdc.hGCClipRgn == NULL)
|
||||||
Dc->rosdc.hGCClipRgn = IntSysCreateRectRgn(0, 0, 0, 0);
|
Dc->rosdc.hGCClipRgn = IntSysCreateRectRgn(0, 0, 0, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue