Skip to content

Commit

Permalink
#2214: get cls() color from vram.mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
nesbox committed Aug 17, 2023
1 parent d8bd8d4 commit 22dbe5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ void tic_api_cls(tic_mem* tic, u8 color)

static const struct ClipRect EmptyClip = { 0, 0, TIC80_WIDTH, TIC80_HEIGHT };

color = mapColor(tic, color);

if (MEMCMP(core->state.clip, EmptyClip))
{
memset(&vram->screen, (color & 0xf) | (color << TIC_PALETTE_BPP), sizeof(tic_screen));
Expand Down

0 comments on commit 22dbe5d

Please sign in to comment.