Replace "unsigned int" with "unsigned"
This commit is contained in:
parent
b4f904ecdc
commit
940882d743
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -40,7 +40,7 @@ union peripheral
|
|||
struct mouse mouse;
|
||||
struct keyboard keyboard;
|
||||
bool long_press;
|
||||
unsigned int lp_t;
|
||||
unsigned lp_t;
|
||||
} kbm;
|
||||
};
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ extern "C"
|
|||
{
|
||||
#endif
|
||||
|
||||
typedef unsigned int player_team;
|
||||
typedef unsigned player_team;
|
||||
|
||||
enum
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue