Patch level : 4.0
Files correlati : librerie Ricompilazione Demo : [ ] Commento : Corretta posizione del titolo dell'applicazione sullo sfondo della finestra principale git-svn-id: svn://10.65.10.50/trunk@15169 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
db5a91f19f
commit
daaf63f06f
@ -159,20 +159,15 @@ HIDDEN void paint_background(WINDOW win)
|
||||
|
||||
const char* t = main_app().title();
|
||||
int w = xvt_dwin_get_text_width(win, t, -1);
|
||||
int x = (r.right-w)/2, y = r.top+BIGY;
|
||||
if (ADVANCED_GRAPHICS)
|
||||
{
|
||||
int x = (r.right-w)/2, y = r.top+BIGY+ROWY;
|
||||
if (ADVANCED_GRAPHICS)
|
||||
{ // Disegna ombra
|
||||
const int k = max(BIGY/24, 1);
|
||||
xvt_dwin_set_fore_color(win, MASK_LIGHT_COLOR);
|
||||
xvt_dwin_set_fore_color(win, DISABLED_COLOR);
|
||||
xvt_dwin_draw_text(win, x+k, y+k, t, -1);
|
||||
xvt_dwin_set_fore_color(win, MASK_DARK_COLOR);
|
||||
xvt_dwin_draw_text(win, x, y, t, -1);
|
||||
}
|
||||
else
|
||||
{
|
||||
xvt_dwin_set_fore_color(win, NORMAL_COLOR);
|
||||
xvt_dwin_draw_text(win, x, y, t, -1);
|
||||
}
|
||||
xvt_dwin_set_fore_color(win, NORMAL_COLOR);
|
||||
xvt_dwin_draw_text(win, x, y, t, -1);
|
||||
|
||||
xvtil_set_font(win, NULL, XVT_FS_NONE);
|
||||
xvt_dwin_set_fore_color(win, NORMAL_COLOR);
|
||||
|
Loading…
x
Reference in New Issue
Block a user