mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-18 05:34:29 -04:00
scene: fix color format compare
bool doesn't really support negative values.
Fixes: 7cb3393e7 (scene: send color_management_v1 surface feedback)
This commit is contained in:
parent
3dafaa4df3
commit
9a931d9ffa
1 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ static struct wlr_output *get_surface_frame_pacing_output(struct wlr_surface *su
|
||||||
return frame_pacing_output;
|
return frame_pacing_output;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool get_tf_preference(enum wlr_color_transfer_function tf) {
|
static int get_tf_preference(enum wlr_color_transfer_function tf) {
|
||||||
switch (tf) {
|
switch (tf) {
|
||||||
case WLR_COLOR_TRANSFER_FUNCTION_GAMMA22:
|
case WLR_COLOR_TRANSFER_FUNCTION_GAMMA22:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -52,7 +52,7 @@ static bool get_tf_preference(enum wlr_color_transfer_function tf) {
|
||||||
abort(); // unreachable
|
abort(); // unreachable
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool get_primaries_preference(enum wlr_color_named_primaries primaries) {
|
static int get_primaries_preference(enum wlr_color_named_primaries primaries) {
|
||||||
switch (primaries) {
|
switch (primaries) {
|
||||||
case WLR_COLOR_NAMED_PRIMARIES_SRGB:
|
case WLR_COLOR_NAMED_PRIMARIES_SRGB:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue