mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-13 08:22:16 -04:00
scene: use fractional sizes for rects
Signed-off-by: Loukas Agorgianitis <loukas@agorgianitis.com>
This commit is contained in:
parent
6f9ff33944
commit
d05f14f38b
2 changed files with 5 additions and 5 deletions
|
|
@ -724,7 +724,7 @@ static void scene_node_update(struct wlr_scene_node *node,
|
|||
}
|
||||
|
||||
struct wlr_scene_rect *wlr_scene_rect_create(struct wlr_scene_tree *parent,
|
||||
int width, int height, const float color[static 4]) {
|
||||
double width, double height, const float color[static 4]) {
|
||||
assert(parent);
|
||||
assert(width >= 0 && height >= 0);
|
||||
|
||||
|
|
@ -743,7 +743,7 @@ struct wlr_scene_rect *wlr_scene_rect_create(struct wlr_scene_tree *parent,
|
|||
return scene_rect;
|
||||
}
|
||||
|
||||
void wlr_scene_rect_set_size(struct wlr_scene_rect *rect, int width, int height) {
|
||||
void wlr_scene_rect_set_size(struct wlr_scene_rect *rect, double width, double height) {
|
||||
if (rect->width == width && rect->height == height) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue