Skip to content
Snippets Groups Projects
Commit 8dc7b0d9 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

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

parent f035cc73
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment