Remove debug, add explicit TODO

This commit is contained in:
emersion 2018-03-30 17:24:29 -04:00
parent 50219564c2
commit 3a68c012a9
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -198,7 +198,6 @@ static void render_layer(struct sway_output *output,
static void render_output(struct sway_output *output, struct timespec *when,
pixman_region32_t *damage) {
wlr_log(L_DEBUG, "render");
struct wlr_output *wlr_output = output->wlr_output;
struct wlr_renderer *renderer =
wlr_backend_get_renderer(wlr_output->backend);
@ -210,7 +209,7 @@ static void render_output(struct sway_output *output, struct timespec *when,
goto renderer_end;
}
// TODO
// TODO: don't damage the whole output here
int width, height;
wlr_output_transformed_resolution(wlr_output, &width, &height);
pixman_region32_union_rect(damage, damage, 0, 0, width, height);