Loading a GIF animation now shows first image instead of last image
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1916 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
		
							parent
							
								
									641be48aad
								
							
						
					
					
						commit
						8852f59a95
					
				@ -788,8 +788,15 @@ void Load_image(T_IO_Context *context)
 | 
			
		||||
        //Main_image_width= context->Width;
 | 
			
		||||
        //Main_image_height= context->Height;
 | 
			
		||||
        
 | 
			
		||||
        Main_current_layer = context->Nb_layers - 1;
 | 
			
		||||
        Main_layers_visible = (2<<Main_current_layer)-1;
 | 
			
		||||
        if (Main_backups->Pages->Image_mode == IMAGE_MODE_ANIMATION)
 | 
			
		||||
        {
 | 
			
		||||
          Main_current_layer = 0;
 | 
			
		||||
        }
 | 
			
		||||
        else
 | 
			
		||||
        {
 | 
			
		||||
          Main_current_layer = context->Nb_layers - 1;
 | 
			
		||||
          Main_layers_visible = (2<<Main_current_layer)-1;
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        // Load the transparency data
 | 
			
		||||
        Main_backups->Pages->Transparent_color = context->Transparent_color;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user