It is only used as a binary value.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* pending frame callbacks. */
wl_list_for_each(output, &compositor->output_list, base.link) {
* pending frame callbacks. */
wl_list_for_each(output, &compositor->output_list, base.link) {
- output->base.repaint_needed = 0;
+ output->base.repaint_needed = false;
drmModeSetCursor(b->drm.fd, output->crtc_id, 0, 0, 0);
}
drmModeSetCursor(b->drm.fd, output->crtc_id, 0, 0, 0);
}
wl_list_for_each(output,
&compositor->output_list, link) {
wl_list_for_each(output,
&compositor->output_list, link) {
- output->repaint_needed = 0;
+ output->repaint_needed = false;
pixman_region32_fini(&output_damage);
pixman_region32_fini(&output_damage);
- output->repaint_needed = 0;
+ output->repaint_needed = false;
weston_compositor_repick(ec);
weston_compositor_repick(ec);
TL_POINT("core_repaint_req", TLP_OUTPUT(output), TLP_END);
loop = wl_display_get_event_loop(compositor->wl_display);
TL_POINT("core_repaint_req", TLP_OUTPUT(output), TLP_END);
loop = wl_display_get_event_loop(compositor->wl_display);
- output->repaint_needed = 1;
+ output->repaint_needed = true;
if (output->repaint_scheduled)
return;
if (output->repaint_scheduled)
return;
pixman_region32_t region;
pixman_region32_t previous_damage;
pixman_region32_t region;
pixman_region32_t previous_damage;
+
+ /** True if damage has occurred since the last repaint for this output;
+ * if set, a repaint will eventually occur. */
+ bool repaint_needed;
int repaint_scheduled;
struct wl_event_source *repaint_timer;
struct weston_output_zoom zoom;
int repaint_scheduled;
struct wl_event_source *repaint_timer;
struct weston_output_zoom zoom;