Border color does not update when loading carts until esc is pressed. #308
This commit is contained in:
		
							
								
								
									
										10
									
								
								src/studio.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								src/studio.c
									
									
									
									
									
								
							@@ -911,7 +911,7 @@ static void updateHash()
 | 
			
		||||
	md5(&studio.tic->cart, sizeof(tic_cartridge), studio.hash.data);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void studioRomSaved()
 | 
			
		||||
static void updateTitle()
 | 
			
		||||
{
 | 
			
		||||
	char name[FILENAME_MAX] = TIC_TITLE;
 | 
			
		||||
 | 
			
		||||
@@ -919,17 +919,19 @@ void studioRomSaved()
 | 
			
		||||
		sprintf(name, "%s [%s]", TIC_TITLE, studio.console.romName);
 | 
			
		||||
 | 
			
		||||
	SDL_SetWindowTitle(studio.window, name);	
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void studioRomSaved()
 | 
			
		||||
{
 | 
			
		||||
	updateTitle();
 | 
			
		||||
	updateHash();
 | 
			
		||||
 | 
			
		||||
	studio.tic->api.pause(studio.tic);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void studioRomLoaded()
 | 
			
		||||
{
 | 
			
		||||
	initModules();
 | 
			
		||||
	studioRomSaved();
 | 
			
		||||
 | 
			
		||||
	updateTitle();
 | 
			
		||||
	updateHash();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user