Replace "unsigned int" with "unsigned"

This commit is contained in:
Xavier Del Campo Romero 2024-01-27 13:55:51 +01:00
parent b4f904ecdc
commit 940882d743
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
6 changed files with 7 additions and 7 deletions

View File

@ -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,

View File

@ -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)

View File

@ -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)

View File

@ -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();

View File

@ -40,7 +40,7 @@ union peripheral
struct mouse mouse;
struct keyboard keyboard;
bool long_press;
unsigned int lp_t;
unsigned lp_t;
} kbm;
};

View File

@ -14,7 +14,7 @@ extern "C"
{
#endif
typedef unsigned int player_team;
typedef unsigned player_team;
enum
{