From ad60ea32e02b525a68594b405368945d1df328c6 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Thu, 28 Sep 2017 14:44:52 +0300 Subject: [PATCH] Border color does not update when loading carts until esc is pressed. #308 --- src/studio.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/studio.c b/src/studio.c index 9ea9344..4ae57f3 100644 --- a/src/studio.c +++ b/src/studio.c @@ -911,25 +911,27 @@ static void updateHash() md5(&studio.tic->cart, sizeof(tic_cartridge), studio.hash.data); } -void studioRomSaved() +static void updateTitle() { char name[FILENAME_MAX] = TIC_TITLE; if(strlen(studio.console.romName)) sprintf(name, "%s [%s]", TIC_TITLE, studio.console.romName); - SDL_SetWindowTitle(studio.window, name); + SDL_SetWindowTitle(studio.window, name); +} +void studioRomSaved() +{ + updateTitle(); updateHash(); - - studio.tic->api.pause(studio.tic); } void studioRomLoaded() { initModules(); - studioRomSaved(); + updateTitle(); updateHash(); }