Swap U offset for idle/pressed cursor sprites
Since the cursor is mostly idle, it makes sense to set its sprite as the default.
This commit is contained in:
parent
bd3e8f39a7
commit
98aa3ceb13
BIN
res/cursor.bmp
BIN
res/cursor.bmp
Binary file not shown.
Before Width: | Height: | Size: 586 B After Width: | Height: | Size: 586 B |
Binary file not shown.
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
@ -50,10 +50,10 @@ int cursor_render(const struct cursor *const c)
|
|||
switch (c->state)
|
||||
{
|
||||
case CURSOR_STATE_IDLE:
|
||||
s->u += CAMERA_CURSOR_WIDTH;
|
||||
break;
|
||||
|
||||
case CURSOR_STATE_PRESSED:
|
||||
s->u += CAMERA_CURSOR_WIDTH;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue