Patch level : 10.0

Files correlati     : librerie
Ricompilazione Demo : [ ]
Commento            :


git-svn-id: svn://10.65.10.50/trunk@19694 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2009-12-01 13:26:31 +00:00
parent efca1b8c76
commit f1b1a1ae3a

View File

@ -54,11 +54,18 @@ HIDDEN void paint_background(WINDOW win)
else
xvt_dwin_clear(win, MASK_DARK_COLOR);
const int BIGY = 3*ROWY/2;
int BIGY = 3*ROWY/2;
xvtil_set_font(win, XVT_FFN_TIMES, XVT_FS_BOLD | XVT_FS_ITALIC, BIGY);
const char* t = main_app().title();
int w = xvt_dwin_get_text_width(win, t, -1);
if (w > r.right)
{
BIGY = BIGY*r.right/w;
xvtil_set_font(win, XVT_FFN_TIMES, XVT_FS_BOLD | XVT_FS_ITALIC, BIGY);
w = xvt_dwin_get_text_width(win, t, -1);
}
int x = (r.right-w)/2, y = r.top+BIGY+ROWY;
if (ADVANCED_GRAPHICS)
{ // Disegna ombra