mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:26:20 +00:00
- Fix RealizationInfo, it should use DC font not cFont if 0.
svn path=/trunk/; revision=37186
This commit is contained in:
parent
122fb58d8f
commit
3940878911
1 changed files with 4 additions and 1 deletions
|
@ -586,6 +586,7 @@ NtGdiGetRealizationInfo(
|
|||
PDC pDc;
|
||||
PTEXTOBJ pTextObj;
|
||||
PFONTGDI pFontGdi;
|
||||
PDC_ATTR Dc_Attr;
|
||||
BOOL Ret = FALSE;
|
||||
INT i = 0;
|
||||
REALIZATION_INFO ri;
|
||||
|
@ -596,7 +597,9 @@ NtGdiGetRealizationInfo(
|
|||
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||
return 0;
|
||||
}
|
||||
pTextObj = RealizeFontInit(hf);
|
||||
Dc_Attr = pDc->pDc_Attr;
|
||||
if(!Dc_Attr) Dc_Attr = &pDc->Dc_Attr;
|
||||
pTextObj = RealizeFontInit(Dc_Attr->hlfntNew);
|
||||
pFontGdi = ObjToGDI(pTextObj->Font, FONT);
|
||||
TEXTOBJ_UnlockText(pTextObj);
|
||||
DC_UnlockDc(pDc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue