Alexandre Julliard : user32: Use the current DC layout in DrawState when drawing to an intermediate bitmap .
Module: wine Branch: master Commit: 8dc7b0d9c293750398732a1d5626e330fc8777a2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8dc7b0d9c293750398732a1d56... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jun 18 11:32:08 2013 +0200 user32: Use the current DC layout in DrawState when drawing to an intermediate bitmap. --- dlls/user32/uitools.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/user32/uitools.c b/dlls/user32/uitools.c index 4921299..386801c 100644 --- a/dlls/user32/uitools.c +++ b/dlls/user32/uitools.c @@ -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
participants (1)
-
Alexandre Julliard