diff options
Diffstat (limited to 'src/camera')
| -rw-r--r-- | src/camera/inc/camera.h | 4 | ||||
| -rw-r--r-- | src/camera/src/camera.c | 2 |
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) |
