mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[WIN32K]
* When cleaning DC, also "clean" the associated brushes Fixes some asserts hit with Baldur's Gate launcher svn path=/trunk/; revision=56875
This commit is contained in:
parent
f9a6dfab7d
commit
5cdab9e546
1 changed files with 11 additions and 1 deletions
|
@ -73,7 +73,17 @@ IntGdiCleanDC(HDC hDC)
|
|||
dc = DC_LockDc(hDC);
|
||||
if (!dc) return FALSE;
|
||||
// Clean the DC
|
||||
if (defaultDCstate) DC_vCopyState(defaultDCstate, dc, FALSE);
|
||||
if (defaultDCstate)
|
||||
{
|
||||
DC_vCopyState(defaultDCstate, dc, FALSE);
|
||||
/* Update the brushes now, because they reference some objects (the DC palette)
|
||||
* Which belong to the current process, and this DC might be used for another process
|
||||
* after being cleaned up (for GetDC(0) for instance) */
|
||||
DC_vUpdateFillBrush(dc);
|
||||
DC_vUpdateBackgroundBrush(dc);
|
||||
DC_vUpdateLineBrush(dc);
|
||||
DC_vUpdateTextBrush(dc);
|
||||
}
|
||||
|
||||
DC_UnlockDc(dc);
|
||||
|
||||
|
|
Loading…
Reference in a new issue