* Factory : if message is longer than 24 chars, cut it instead of not doing anything
* Fileformats : remove outdated comment in gif loader git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1750 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
		
							parent
							
								
									e11d8e030c
								
							
						
					
					
						commit
						eae47aa0e8
					
				@ -1171,12 +1171,16 @@ int L_UpdateScreen(lua_State* L)
 | 
			
		||||
int L_StatusMessage(lua_State* L)
 | 
			
		||||
{
 | 
			
		||||
	const char* msg;
 | 
			
		||||
  char* msg2;
 | 
			
		||||
	int nb_args = lua_gettop(L);
 | 
			
		||||
	LUA_ARG_LIMIT(1,"statusmessage");
 | 
			
		||||
 | 
			
		||||
	LUA_ARG_STRING(1, "statusmessage", msg);
 | 
			
		||||
  if(strlen(msg)<=24)
 | 
			
		||||
	  Print_in_menu(msg,0);
 | 
			
		||||
  msg2 = strdup(msg);
 | 
			
		||||
  if(strlen(msg)>24)
 | 
			
		||||
    msg2[24] = 0; // Cut off long messages
 | 
			
		||||
	Print_in_menu(msg2,0);
 | 
			
		||||
  free(msg2);
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -2079,7 +2079,6 @@ void Load_GIF(T_IO_Context * context)
 | 
			
		||||
            break;
 | 
			
		||||
            case 0x2C: // Local Image Descriptor
 | 
			
		||||
            {
 | 
			
		||||
              // Si on a deja lu une image, c'est une GIF animée ou bizarroide, on sort.
 | 
			
		||||
              if (number_LID!=0)
 | 
			
		||||
              {
 | 
			
		||||
                // This a second layer/frame, or more.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user