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:
Xavier Del Campo Romero 2022-09-26 02:23:20 +02:00
parent bd3e8f39a7
commit 98aa3ceb13
3 changed files with 1 additions and 1 deletions

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

View File

@ -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;
}