projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
220819f
)
compositor: Make backlight_current int32_t to avoid unsigned overflow
author
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 24 May 2013 00:30:26 +0000
(20:30 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 24 May 2013 01:00:45 +0000
(21:00 -0400)
Backlight brightness was wrapping around when decrementing from 0.
src/compositor.h
patch
|
blob
|
history
diff --git
a/src/compositor.h
b/src/compositor.h
index
06476cc
..
a4292d2
100644
(file)
--- a/
src/compositor.h
+++ b/
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 */
-
u
int32_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);