mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 12:28:04 +02:00
compositor: Make backlight_current int32_t to avoid unsigned overflow
Backlight brightness was wrapping around when decrementing from 0.
This commit is contained in:
parent
275481d59d
commit
0d78b9aa87
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,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…
Add table
Reference in a new issue