Rounded corners

This commit is contained in:
neauoire 2021-02-19 09:59:46 -08:00
parent 59229bdb9f
commit 3d2f764914
3 changed files with 11 additions and 6 deletions

View File

@ -106,6 +106,7 @@ A device that works like a NES controller, each button is a bit from a single by
### Misc TODOs
- Defining theme colors in memory
- Includes
- Defines
- Lint, print unused labels

View File

@ -131,6 +131,10 @@ clear(Uint32 *dst)
void
putpixel(Uint32 *dst, int x, int y, int color)
{
if(y == PAD * 8 || y == HEIGHT - PAD * 8 - 1) {
if(x == PAD * 8) return;
if(x == WIDTH - PAD * 8 - 1) return;
}
if(x >= 0 && x < WIDTH - 8 && y >= 0 && y < HEIGHT - 8)
dst[y * WIDTH + x] = theme[color];
}

View File

@ -42,13 +42,13 @@ BRK
#02 IOR2 #0008 DIV2 #0006 NEQ2 ,option3 ROT JMP? POP2
,brush_tiny =brush BRK
@option3
#02 IOR2 #0008 DIV2 #0007 NEQ2 ,option4 ROT JMP? POP2
#02 IOR2 #0008 DIV2 #000b NEQ2 ,option4 ROT JMP? POP2
#05 =color BRK
@option4
#02 IOR2 #0008 DIV2 #0008 NEQ2 ,option5 ROT JMP? POP2
#02 IOR2 #0008 DIV2 #000c NEQ2 ,option5 ROT JMP? POP2
#06 =color BRK
@option5
#02 IOR2 #0008 DIV2 #0009 NEQ2 ,option6 ROT JMP? POP2
#02 IOR2 #0008 DIV2 #000d NEQ2 ,option6 ROT JMP? POP2
#07 =color BRK
@option6
@ -66,9 +66,9 @@ BRK
#05 ,brush_large #0008 #0020 ,draw-sprite JSR
#05 ,brush_small #0008 #0028 ,draw-sprite JSR
#05 ,brush_tiny #0008 #0030 ,draw-sprite JSR
#05 ,brush_large #0008 #0038 ,draw-sprite JSR
#06 ,brush_large #0008 #0040 ,draw-sprite JSR
#07 ,brush_large #0008 #0048 ,draw-sprite JSR
#05 ,brush_large #0008 #0058 ,draw-sprite JSR
#06 ,brush_large #0008 #0060 ,draw-sprite JSR
#07 ,brush_large #0008 #0068 ,draw-sprite JSR
RTS
@draw-sprite