compositor: Make backlight_current int32_t to avoid unsigned overflow

Backlight brightness was wrapping around when decrementing from 0.
Kristian Høgsberg 11 years ago
parent 220819f7b9
commit 7c60912cb9
  1. 2
      src/compositor.h

@ -197,7 +197,7 @@ struct weston_output {
int (*switch_mode)(struct weston_output *output, struct weston_mode *mode);
/* backlight values are on 0-255 range, where higher is brighter */
uint32_t backlight_current;
int32_t backlight_current;
void (*set_backlight)(struct weston_output *output, uint32_t value);
void (*set_dpms)(struct weston_output *output, enum dpms_enum level);

Loading…
Cancel
Save