mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 11:16:11 +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;
|
PDC pDc;
|
||||||
PTEXTOBJ pTextObj;
|
PTEXTOBJ pTextObj;
|
||||||
PFONTGDI pFontGdi;
|
PFONTGDI pFontGdi;
|
||||||
|
PDC_ATTR Dc_Attr;
|
||||||
BOOL Ret = FALSE;
|
BOOL Ret = FALSE;
|
||||||
INT i = 0;
|
INT i = 0;
|
||||||
REALIZATION_INFO ri;
|
REALIZATION_INFO ri;
|
||||||
|
@ -596,7 +597,9 @@ NtGdiGetRealizationInfo(
|
||||||
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||||
return 0;
|
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);
|
pFontGdi = ObjToGDI(pTextObj->Font, FONT);
|
||||||
TEXTOBJ_UnlockText(pTextObj);
|
TEXTOBJ_UnlockText(pTextObj);
|
||||||
DC_UnlockDc(pDc);
|
DC_UnlockDc(pDc);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue