aboutsummaryrefslogtreecommitdiff
path: root/src/camera
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-27 13:55:51 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-27 17:38:12 +0100
commit940882d743b7e6afea97352d6fdfaf8ec8e433d6 (patch)
treeb32a7f338c9a27d8347efdd2ada283657f8b9118 /src/camera
parentb4f904ecdcf6b0857d28ab4a877ad0f3468153f7 (diff)
downloadjancity-940882d743b7e6afea97352d6fdfaf8ec8e433d6.tar.gz
Replace "unsigned int" with "unsigned"
Diffstat (limited to 'src/camera')
-rw-r--r--src/camera/inc/camera.h4
-rw-r--r--src/camera/src/camera.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/camera/inc/camera.h b/src/camera/inc/camera.h
index a108c98..27efe2e 100644
--- a/src/camera/inc/camera.h
+++ b/src/camera/inc/camera.h
@@ -19,12 +19,12 @@ struct camera
} dim;
int x, y, x_speed, y_speed;
- unsigned int xt, yt;
+ unsigned xt, yt;
bool pan;
struct cursor
{
- unsigned int x, y, x_init, y_init;
+ unsigned x, y, x_init, y_init;
enum
{
CURSOR_STATE_IDLE,
diff --git a/src/camera/src/camera.c b/src/camera/src/camera.c
index 223c235..81053fd 100644
--- a/src/camera/src/camera.c
+++ b/src/camera/src/camera.c
@@ -63,7 +63,7 @@ int cursor_render(const struct cursor *const c)
void cursor_init(struct cursor *const c)
{
- const unsigned int x = (screen_w / 2) - CAMERA_CURSOR_WIDTH,
+ const unsigned x = (screen_w / 2) - CAMERA_CURSOR_WIDTH,
y = (screen_h / 2) - CAMERA_CURSOR_HEIGHT;
*c = (const struct cursor)