output: move scaling to output instead of view

This commit is contained in:
Jente Hidskes 2020-07-04 16:07:55 +02:00
parent 0e9dae18e6
commit 0489045405
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
2 changed files with 3 additions and 4 deletions

View file

@ -28,6 +28,7 @@
#include "output.h"
#include "renderer.h"
#include "util.h"
#include "view.h"
void
@ -45,6 +46,7 @@ cage_output_damage_region(struct cg_output *output, struct wlr_box *region)
assert(region != NULL);
assert(output->wlr_output->enabled);
scale_box(region, output->wlr_output->scale);
wlr_output_damage_add_box(output->damage, region);
}