this repo has no description
0
fork

Configure Feed

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

bookmarks fixes #1819

nesbox 2162a313 199af532

+8 -6
+4 -2
src/studio/editors/code.c
··· 1334 1334 tic_outline_item* item = &code->sidebar.items[last]; 1335 1335 1336 1336 item->pos = ptr; 1337 - item->size = MIN(SIDEBAR_WIDTH / TIC_ALTFONT_WIDTH, getLineSize(ptr)); 1337 + item->size = getLineSize(ptr); 1338 1338 } 1339 1339 1340 1340 ptr++; ··· 2316 2316 FREE(code->anim.hide.items); 2317 2317 } 2318 2318 2319 - void initCode(Code* code, Studio* studio, tic_code* src) 2319 + void initCode(Code* code, Studio* studio) 2320 2320 { 2321 2321 bool firstLoad = code->state == NULL; 2322 2322 FREE(code->state); 2323 2323 freeAnim(code); 2324 2324 2325 2325 if(code->history) history_delete(code->history); 2326 + 2327 + tic_code* src = &getMemory(studio)->cart.code; 2326 2328 2327 2329 *code = (Code) 2328 2330 {
+1 -1
src/studio/editors/code.h
··· 136 136 void(*update)(Code*); 137 137 }; 138 138 139 - void initCode(Code*, Studio* studio, tic_code* src); 139 + void initCode(Code*, Studio* studio); 140 140 void freeCode(Code*);
+1 -1
src/studio/studio.c
··· 1376 1376 1377 1377 resetBanks(studio); 1378 1378 1379 - initCode(studio->code, studio, &tic->cart.code); 1379 + initCode(studio->code, studio); 1380 1380 1381 1381 for(s32 i = 0; i < TIC_EDITOR_BANKS; i++) 1382 1382 {
+2 -2
src/tic.h
··· 372 372 u8 data[TIC_SPRITESIZE * TIC_SPRITESIZE * TIC_PALETTE_BPP / BITS_IN_BYTE]; 373 373 } tic_tile; 374 374 375 - typedef union 375 + typedef struct 376 376 { 377 377 char data[TIC_CODE_SIZE]; 378 378 } tic_code; ··· 443 443 tic_bank banks[TIC_BANKS]; 444 444 }; 445 445 446 - tic_code code; 446 + tic_code code; 447 447 tic_binary binary; 448 448 449 449 } tic_cartridge;