Change look of window title bars.
* Now they have a white background. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2105 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
5a8faa6d42
commit
810c457483
@ -1620,13 +1620,13 @@ void Open_window(word width,word height, const char * title)
|
|||||||
Window_display_frame_out(1,1,width-2,height-2);
|
Window_display_frame_out(1,1,width-2,height-2);
|
||||||
|
|
||||||
// Barre sous le titre
|
// Barre sous le titre
|
||||||
Window_rectangle(8,11,width-16,1,MC_Dark);
|
Window_rectangle(3,3,width-6,10,MC_White);
|
||||||
Window_rectangle(8,12,width-16,1,MC_White);
|
Window_rectangle(2,12,width-4,1,MC_Dark);
|
||||||
|
|
||||||
title_length = strlen(title);
|
title_length = strlen(title);
|
||||||
if (title_length+2 > (size_t)(width/8))
|
if (title_length+2 > (size_t)(width/8))
|
||||||
title_length = width/8-2;
|
title_length = width/8-2;
|
||||||
Print_in_window_limited((width-(title_length<<3))>>1,3,title,title_length,MC_Black,MC_Light);
|
Print_in_window_limited((width-(title_length<<3))>>1,4,title,title_length,MC_Black,MC_White);
|
||||||
|
|
||||||
if (Windows_open == 1)
|
if (Windows_open == 1)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user