this repo has no description
0
fork

Configure Feed

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

removed `screen_format` from the `tic_core_blit()` function

nesbox f78fe034 4e7f1f17

+12 -11
+2 -2
src/api.h
··· 699 699 void tic_core_tick_start(tic_mem* memory); 700 700 void tic_core_tick(tic_mem* memory, tic_tick_data* data); 701 701 void tic_core_tick_end(tic_mem* memory); 702 - void tic_core_blit(tic_mem* tic, tic80_pixel_color_format fmt); 702 + void tic_core_blit(tic_mem* tic); 703 703 704 - void tic_core_blit_ex(tic_mem* tic, tic80_pixel_color_format fmt, tic_blit_callback clb); 704 + void tic_core_blit_ex(tic_mem* tic, tic_blit_callback clb); 705 705 const tic_script_config* tic_core_script_config(tic_mem* memory); 706 706 707 707 typedef struct
+4 -3
src/core/core.c
··· 472 472 #endif 473 473 } 474 474 475 - void tic_core_blit_ex(tic_mem* tic, tic80_pixel_color_format fmt, tic_blit_callback clb) 475 + void tic_core_blit_ex(tic_mem* tic, tic_blit_callback clb) 476 476 { 477 477 tic_core* core = (tic_core*)tic; 478 478 479 479 tic_palette ovrpal; 480 + tic80_pixel_color_format fmt = tic->screen_format; 480 481 481 482 if(clb.overline) 482 483 { ··· 585 586 core->state.callback.overline(memory, data); 586 587 } 587 588 588 - void tic_core_blit(tic_mem* tic, tic80_pixel_color_format fmt) 589 + void tic_core_blit(tic_mem* tic) 589 590 { 590 - tic_core_blit_ex(tic, fmt, (tic_blit_callback){scanline, overline, border, NULL}); 591 + tic_core_blit_ex(tic, (tic_blit_callback){scanline, overline, border, NULL}); 591 592 } 592 593 593 594 tic_mem* tic_core_create(s32 samplerate)
+1 -1
src/studio/screens/console.c
··· 2057 2057 tic_api_map(tic, c * TIC_MAP_SCREEN_WIDTH, r * TIC_MAP_SCREEN_HEIGHT, 2058 2058 TIC_MAP_SCREEN_WIDTH, TIC_MAP_SCREEN_HEIGHT, 0, 0, NULL, 0, 1, NULL, NULL); 2059 2059 2060 - tic_core_blit(tic, tic->screen_format); 2060 + tic_core_blit(tic); 2061 2061 2062 2062 for(s32 j = 0; j < TIC80_HEIGHT; j++) 2063 2063 for(s32 i = 0; i < TIC80_WIDTH; i++)
+2 -2
src/studio/studio.c
··· 2011 2011 } 2012 2012 2013 2013 callback[impl.mode].data 2014 - ? tic_core_blit_ex(tic, tic->screen_format, callback[impl.mode]) 2015 - : tic_core_blit(tic, tic->screen_format); 2014 + ? tic_core_blit_ex(tic, callback[impl.mode]) 2015 + : tic_core_blit(tic); 2016 2016 2017 2017 blitCursor(); 2018 2018
+2 -2
src/system/sdl/main.c
··· 350 350 351 351 tic_api_map(tic, down ? Cols : 0, 0, Cols, Rows, 0, 0, 0, 0, 1, NULL, NULL); 352 352 drawKeyboardLabels(down ? 2 : 0); 353 - tic_core_blit(tic, tic->screen_format); 353 + tic_core_blit(tic); 354 354 *pixels = SDL_malloc(TIC80_FULLWIDTH * TIC80_FULLHEIGHT * sizeof(u32)); 355 355 memcpy(*pixels, tic->screen, TIC80_FULLWIDTH * TIC80_FULLHEIGHT * sizeof(u32)); 356 356 ··· 432 432 433 433 platform.gamepad.touch.pixels = SDL_malloc(TEXTURE_SIZE * TEXTURE_SIZE * sizeof(u32)); 434 434 435 - tic_core_blit(tic, tic->screen_format); 435 + tic_core_blit(tic); 436 436 437 437 for(u32* pix = tic->screen, *end = pix + TIC80_FULLWIDTH * TIC80_FULLHEIGHT; pix != end; ++pix) 438 438 if(*pix == tic_rgba(&bank->palette.scn.colors[0]))
+1 -1
src/tic.c
··· 118 118 tic_core_tick(tic80->memory, &tic80->tickData); 119 119 tic_core_tick_end(tic80->memory); 120 120 121 - tic_core_blit(tic80->memory, tic80->memory->screen_format); 121 + tic_core_blit(tic80->memory); 122 122 123 123 tic80->tick_counter++; 124 124 }