Just fix some warnings for Haiku as well.
One of them was a missing prototype, the other was likely some strangeness in the definition of size_t. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1953 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -1621,7 +1621,7 @@ void Open_window(word width,word height, const char * title)
|
||||
Block(Window_pos_X+(Menu_factor_X<<3),Window_pos_Y+(12*Menu_factor_Y),(width-16)*Menu_factor_X,Menu_factor_Y,MC_White);
|
||||
|
||||
title_length = strlen(title);
|
||||
if (title_length+2 > width/8)
|
||||
if (title_length+2 > (size_t)(width/8))
|
||||
title_length = width/8-2;
|
||||
Print_in_window_limited((width-(title_length<<3))>>1,3,title,title_length,MC_Black,MC_Light);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user