user32: Use the current DC layout in DrawState when drawing to an intermediate bitmap.

This commit is contained in:
Alexandre Julliard 2013-06-18 11:32:08 +02:00
parent f035cc73d0
commit 8dc7b0d9c2
1 changed files with 1 additions and 0 deletions

View File

@ -1690,6 +1690,7 @@ static BOOL UITOOLS_DrawState(HDC hdc, HBRUSH hbr, DRAWSTATEPROC func, LPARAM lp
SetBkColor(memdc, RGB(255, 255, 255));
SetTextColor(memdc, RGB(0, 0, 0));
hfsave = SelectObject(memdc, GetCurrentObject(hdc, OBJ_FONT));
SetLayout( memdc, GetLayout( hdc ));
/* DST_COMPLEX may draw text as well,
* so we must be sure that correct font is selected