mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-31 22:25:27 -04:00
output: move scaling to output instead of view
This commit is contained in:
parent
0e9dae18e6
commit
0489045405
2 changed files with 3 additions and 4 deletions
|
|
@ -15,7 +15,6 @@
|
|||
#include <wlr/util/region.h>
|
||||
|
||||
#include "output.h"
|
||||
#include "util.h"
|
||||
#include "view.h"
|
||||
|
||||
static bool
|
||||
|
|
@ -99,13 +98,11 @@ cage_view_damage_whole(struct cg_view *view)
|
|||
{
|
||||
assert(view != NULL);
|
||||
assert(view->impl->get_geometry != NULL);
|
||||
struct cg_output *output = view->output;
|
||||
struct wlr_box box = {0};
|
||||
|
||||
view->impl->get_geometry(view, &box.width, &box.height);
|
||||
|
||||
scale_box(&box, output->wlr_output->scale);
|
||||
cage_output_damage_region(output, &box);
|
||||
cage_output_damage_region(view->output, &box);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue