Patch level : 2.1 48
Files correlati : xvaga.dll Ricompilazione Demo : [ ] Commento : Estesa la funzionalita' xvt_font_map_enum_families in modo da poter enumerare anche i font del video e non solo quelli della stampante git-svn-id: svn://10.65.10.50/trunk@12101 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
3a3e747248
commit
fb055d618a
@ -505,17 +505,20 @@ long xvt_fmap_get_families(PRINT_RCD *precp, char **family_array, long max_famil
|
|||||||
long size = 0;
|
long size = 0;
|
||||||
family_array[0] = NULL;
|
family_array[0] = NULL;
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
if (precp != NULL)
|
if (precp != NULL)
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
|
||||||
TwxPrintOut* po = m_PrintoutCache.Get((TPRINT_RCD*)precp);
|
TwxPrintOut* po = m_PrintoutCache.Get((TPRINT_RCD*)precp);
|
||||||
size = OsWin32_EnumerateFamilies(po->GetDC()->GetHDC(), family_array, max_families);
|
size = OsWin32_EnumerateFamilies(po->GetDC()->GetHDC(), family_array, max_families);
|
||||||
if (size == 0)
|
if (size == 0)
|
||||||
po->SetBadDriver(true);
|
po->SetBadDriver(true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
size = OsWin32_EnumerateFamilies(NULL, family_array, max_families);
|
||||||
#else
|
#else
|
||||||
size = OsLinux_EnumerateFamilies(family_array, max_families);
|
size = OsLinux_EnumerateFamilies(family_array, max_families);
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user