fix style for client_set_scale()

This commit is contained in:
Leonardo Hernández Hernández 2024-08-30 18:19:18 -06:00
parent d34be5d545
commit 9c05b9622c
No known key found for this signature in database
GPG key ID: E538897EE11B9624

View file

@ -332,7 +332,8 @@ client_set_fullscreen(Client *c, int fullscreen)
} }
static inline void static inline void
client_set_scale(struct wlr_surface *s, float scale) { client_set_scale(struct wlr_surface *s, float scale)
{
wlr_fractional_scale_v1_notify_scale(s, scale); wlr_fractional_scale_v1_notify_scale(s, scale);
wlr_surface_set_preferred_buffer_scale(s, (int32_t)ceilf(scale)); wlr_surface_set_preferred_buffer_scale(s, (int32_t)ceilf(scale));
} }