aboutsummaryrefslogtreecommitdiff
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
parentb4f904ecdcf6b0857d28ab4a877ad0f3468153f7 (diff)
Replace "unsigned int" with "unsigned"
-rw-r--r--src/camera/inc/camera.h4
-rw-r--r--src/camera/src/camera.c2
-rw-r--r--src/gfx/ps1/src/heap.c2
-rw-r--r--src/gfx/ps1/src/sort.c2
-rw-r--r--src/peripheral/inc/peripheral.h2
-rw-r--r--src/player/inc/player.h2
6 files changed, 7 insertions, 7 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)
diff --git a/src/gfx/ps1/src/heap.c b/src/gfx/ps1/src/heap.c
index 5ef8b80..56d6b0b 100644
--- a/src/gfx/ps1/src/heap.c
+++ b/src/gfx/ps1/src/heap.c
@@ -2,7 +2,7 @@
#include <gfx_private.h>
#include <stddef.h>
-static unsigned int sel;
+static unsigned sel;
static size_t heap_i;
void gfx_swapheap(void)
diff --git a/src/gfx/ps1/src/sort.c b/src/gfx/ps1/src/sort.c
index 3f2314a..c517b89 100644
--- a/src/gfx/ps1/src/sort.c
+++ b/src/gfx/ps1/src/sort.c
@@ -61,7 +61,7 @@ int gfx_draw(void)
add_to_list(&term);
- void gpu_ctrl(unsigned int command, unsigned int param);
+ void gpu_ctrl(unsigned command, unsigned param);
gfx_sync();
gfx_swapbuffers();
diff --git a/src/peripheral/inc/peripheral.h b/src/peripheral/inc/peripheral.h
index 2895f54..b686eba 100644
--- a/src/peripheral/inc/peripheral.h
+++ b/src/peripheral/inc/peripheral.h
@@ -40,7 +40,7 @@ union peripheral
struct mouse mouse;
struct keyboard keyboard;
bool long_press;
- unsigned int lp_t;
+ unsigned lp_t;
} kbm;
};
diff --git a/src/player/inc/player.h b/src/player/inc/player.h
index 10557b3..cc191ca 100644
--- a/src/player/inc/player.h
+++ b/src/player/inc/player.h
@@ -14,7 +14,7 @@ extern "C"
{
#endif
-typedef unsigned int player_team;
+typedef unsigned player_team;
enum
{