Create a new DC in GetDCEx when none are available.
This commit is contained in:
parent
986de4b12a
commit
0d5fe58361
|
@ -688,6 +688,12 @@ HDC WINAPI GetDCEx( HWND hwnd, HRGN hrgnClip, DWORD flags )
|
|||
}
|
||||
}
|
||||
if (!dce) dce = (dceEmpty) ? dceEmpty : dceUnused;
|
||||
|
||||
/* if there's no dce empty or unused, allocate a new one */
|
||||
if (!dce)
|
||||
{
|
||||
dce = DCE_AllocDCE( 0, DCE_CACHE_DC );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue