this repo has no description
0
fork

Configure Feed

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

Clipping doesn't work with tri() api #541

+3 -2
+3 -2
src/tic.c
··· 939 939 ticLine(memory, x3, y3, x1, y1, color, triPixelFunc); 940 940 941 941 u8 final_color = mapColor(&machine->memory, color); 942 - s32 yt = max(0, min(y1, min(y2, y3))); 943 - s32 yb = min(TIC80_HEIGHT, max(y1, max(y2, y3)) + 1); 942 + s32 yt = max(machine->state.clip.t, min(y1, min(y2, y3))); 943 + s32 yb = min(machine->state.clip.b, max(y1, max(y2, y3)) + 1); 944 + 944 945 for(s32 y = yt; y < yb; y++) { 945 946 s32 xl = max(SidesBuffer.Left[y], machine->state.clip.l); 946 947 s32 xr = min(SidesBuffer.Right[y]+1, machine->state.clip.r);