mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Stop using wlr_texture_get_size
Just use wlr_texture.{width,height} directly.
This commit is contained in:
parent
ae5275c09f
commit
b9460ab724
5 changed files with 14 additions and 18 deletions
|
|
@ -402,10 +402,8 @@ static bool output_set_cursor(struct wlr_output *wlr_output,
|
|||
struct wl_surface *surface = output->cursor.surface;
|
||||
|
||||
if (texture != NULL) {
|
||||
int width, height;
|
||||
wlr_texture_get_size(texture, &width, &height);
|
||||
width = width * wlr_output->scale / scale;
|
||||
height = height * wlr_output->scale / scale;
|
||||
int width = texture->width * wlr_output->scale / scale;
|
||||
int height = texture->height * wlr_output->scale / scale;
|
||||
|
||||
if (output->cursor.swapchain == NULL ||
|
||||
output->cursor.swapchain->width != width ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue