this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fixed sprites restoring after showing game menu

Nesbox 88e44dcb aeac503c

+14 -5
+9 -3
src/menu.c
··· 246 246 247 247 static void drawGamepadMenu(Menu* menu) 248 248 { 249 + if (getStudioMode() != TIC_MENU_MODE) 250 + return; 251 + 249 252 drawDialog(menu); 250 253 251 254 tic_mem* tic = menu->tic; ··· 311 314 312 315 static void drawMainMenu(Menu* menu) 313 316 { 317 + if (getStudioMode() != TIC_MENU_MODE) 318 + return; 319 + 314 320 tic_mem* tic = menu->tic; 315 321 316 322 drawDialog(menu); ··· 467 473 468 474 static void tick(Menu* menu) 469 475 { 476 + if(getStudioMode() != TIC_MENU_MODE) 477 + return; 478 + 470 479 tic_mem* tic = menu->tic; 471 480 472 481 menu->ticks++; 473 482 474 483 processKeyboard(menu); 475 - 476 - if(getStudioMode() != TIC_MENU_MODE) 477 - return; 478 484 479 485 if(!menu->init) 480 486 {
+1 -1
src/sfx.c
··· 795 795 796 796 { 797 797 static const char* Notes[] = SFX_NOTES; 798 - SHOW_TOOLTIP("play %s%i note", Notes[btn->note], octave + 1) 798 + SHOW_TOOLTIP("play %s%i note", Notes[btn->note], octave + 1); 799 799 } 800 800 801 801 if(checkMouseDown(&rect, tic_mouse_left))
+4 -1
src/sprite.c
··· 804 804 setCursor(tic_cursor_hand); 805 805 over = true; 806 806 807 - SHOW_TOOLTIP("%i%s PER PIXEL\0", mode, mode > 1 ? "BITS":"BIT"); 807 + if(mode > 1) 808 + SHOW_TOOLTIP("%iBITS PER PIXEL", mode) 809 + else 810 + SHOW_TOOLTIP("%iBIT PER PIXEL", mode); 808 811 809 812 if(checkMouseClick(&rect, tic_mouse_left)) 810 813 {