eliminato ;
git-svn-id: svn://10.65.10.50/trunk@1210 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
cbd8024512
commit
9491390e2c
@ -667,7 +667,6 @@ XVT_FNTID xvt_default_font()
|
|||||||
CHECK(xvt_font_has_valid_native_desc(FAT_FONT), "Bad font description");
|
CHECK(xvt_font_has_valid_native_desc(FAT_FONT), "Bad font description");
|
||||||
xvt_font_map_using_default(FAT_FONT);
|
xvt_font_map_using_default(FAT_FONT);
|
||||||
CHECK(xvt_font_is_mapped(FAT_FONT), "Can't map native font");
|
CHECK(xvt_font_is_mapped(FAT_FONT), "Can't map native font");
|
||||||
|
|
||||||
// Get true text size
|
// Get true text size
|
||||||
TEXTMETRIC tm;
|
TEXTMETRIC tm;
|
||||||
HWND hdc = (HDC)xvt_vobj_get_attr(TASK_WIN, ATTR_NATIVE_GRAPHIC_CONTEXT);
|
HWND hdc = (HDC)xvt_vobj_get_attr(TASK_WIN, ATTR_NATIVE_GRAPHIC_CONTEXT);
|
||||||
@ -704,7 +703,7 @@ void xvt_set_font(WINDOW win, const char* family, int style, int dim)
|
|||||||
if (dim != 0) xvt_font_set_size(font, dim);
|
if (dim != 0) xvt_font_set_size(font, dim);
|
||||||
if (style != XVT_FS_NONE) xvt_font_set_style(font, style);
|
if (style != XVT_FS_NONE) xvt_font_set_style(font, style);
|
||||||
|
|
||||||
if(!xvt_font_is_mapped(font));
|
if(!xvt_font_is_mapped(font))
|
||||||
xvt_font_map(font, win);
|
xvt_font_map(font, win);
|
||||||
|
|
||||||
xvt_dwin_set_font(win, font);
|
xvt_dwin_set_font(win, font);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user