presentation-time: make version a uint32_t

This is consistent with wlr_xdg_shell_create(), wlr_shm_create(),
wlr_layer_shell_create(), etc.
This commit is contained in:
Isaac Freund 2025-04-24 12:50:41 +02:00 committed by Simon Ser
parent 7dd8fdf76c
commit 80f33cd350
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ struct wlr_presentation_event {
struct wlr_backend;
struct wlr_presentation *wlr_presentation_create(struct wl_display *display,
struct wlr_backend *backend, int version);
struct wlr_backend *backend, uint32_t version);
/**
* Mark the current surface's buffer as sampled.
*

View file

@ -175,7 +175,7 @@ static void handle_display_destroy(struct wl_listener *listener, void *data) {
}
struct wlr_presentation *wlr_presentation_create(struct wl_display *display,
struct wlr_backend *backend, int version) {
struct wlr_backend *backend, uint32_t version) {
assert(version <= PRESENTATION_VERSION);
struct wlr_presentation *presentation = calloc(1, sizeof(*presentation));