diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2023-02-22 18:34:08 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2023-02-22 18:34:08 +0100 |
| commit | 1f138859af58e6b5fb31dba6a7a027726a96a5a8 (patch) | |
| tree | e12cce906c4470fdd7a78e765f3cc6bc92ec7963 /include | |
| parent | 1620b730617a240f85a2c81f58f37d1e74126ba0 (diff) | |
Constify pixman_region32_t for rendering functions
Diffstat (limited to 'include')
| -rw-r--r-- | include/sway/input/seat.h | 4 | ||||
| -rw-r--r-- | include/sway/output.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index 227da78b..7b2d3d07 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h @@ -50,7 +50,7 @@ struct sway_seatop_impl { void (*end)(struct sway_seat *seat); void (*unref)(struct sway_seat *seat, struct sway_container *con); void (*render)(struct sway_seat *seat, struct sway_output *output, - pixman_region32_t *damage); + const pixman_region32_t *damage); bool allow_set_cursor; }; @@ -357,7 +357,7 @@ void seatop_unref(struct sway_seat *seat, struct sway_container *con); * (eg. dropzone for move-tiling) */ void seatop_render(struct sway_seat *seat, struct sway_output *output, - pixman_region32_t *damage); + const pixman_region32_t *damage); bool seatop_allows_set_cursor(struct sway_seat *seat); diff --git a/include/sway/output.h b/include/sway/output.h index 28be6a1e..da625315 100644 --- a/include/sway/output.h +++ b/include/sway/output.h @@ -167,7 +167,7 @@ enum sway_container_layout output_get_default_layout( struct sway_output *output); void render_rect(struct sway_output *output, - pixman_region32_t *output_damage, const struct wlr_box *_box, + const pixman_region32_t *output_damage, const struct wlr_box *_box, float color[static 4]); void premultiply_alpha(float color[4], float opacity); |
