mirror of
https://github.com/reactos/reactos.git
synced 2026-07-05 06:44:20 +08:00
- Fix RealizationInfo, it should use DC font not cFont if 0.
svn path=/trunk/; revision=37186
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user