mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-23 05:15:58 +01:00
Remove remaining buffer_{width,height} usage
This commit is contained in:
parent
2f44140f4a
commit
bb973ff27d
1 changed files with 2 additions and 3 deletions
|
@ -39,9 +39,8 @@ static void render_surface(struct wlr_surface *surface,
|
||||||
struct roots_desktop *desktop, struct wlr_output *wlr_output,
|
struct roots_desktop *desktop, struct wlr_output *wlr_output,
|
||||||
struct timespec *when, double lx, double ly, float rotation) {
|
struct timespec *when, double lx, double ly, float rotation) {
|
||||||
if (surface->texture->valid) {
|
if (surface->texture->valid) {
|
||||||
double surface_scale = surface->current->scale;
|
int width = surface->current->width;
|
||||||
double width = (double)surface->current->buffer_width / surface_scale;
|
int height = surface->current->height;
|
||||||
double height = (double)surface->current->buffer_height / surface_scale;
|
|
||||||
int render_width = width * wlr_output->scale;
|
int render_width = width * wlr_output->scale;
|
||||||
int render_height = height * wlr_output->scale;
|
int render_height = height * wlr_output->scale;
|
||||||
double ox = lx, oy = ly;
|
double ox = lx, oy = ly;
|
||||||
|
|
Loading…
Reference in a new issue