no message

This commit is contained in:
BADIM-PC\Vadim 2017-11-15 15:46:01 +03:00
parent bbfa4dfb51
commit 44f9a0aca1
1 changed files with 1 additions and 0 deletions

View File

@ -153,6 +153,7 @@ static void setPixel(tic_machine* machine, s32 x, s32 y, u8 color)
{
if(x < machine->state.clip.l || y < machine->state.clip.t || x >= machine->state.clip.r || y >= machine->state.clip.b) return;
// TODO: check color bounds here
tic_tool_poke4(machine->memory.ram.vram.screen.data, y * TIC80_WIDTH + x, tic_tool_peek4(machine->memory.ram.vram.mapping, color));
}