mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Specify the color space on Wayland surfaces
Uses sRGB with the sRGB transfer function. Seems to give identical results as not specifying a color space. But sadly does not get the compositor to blend in linear space, we need another wayland protocol extension for that I suppose. Sigh.
This commit is contained in:
parent
2ffa8cd7c2
commit
8b9d802206
1 changed files with 1 additions and 0 deletions
1
glfw/wl_window.c
vendored
1
glfw/wl_window.c
vendored
|
|
@ -589,6 +589,7 @@ create_surface(_GLFWwindow* window, const _GLFWwndconfig* wndconfig) {
|
|||
ensure_color_manager_ready();
|
||||
if (_glfw.wl.color_manager.image_description) {
|
||||
window->wl.color_management = wp_color_manager_v1_get_surface(_glfw.wl.wp_color_manager_v1, window->wl.surface);
|
||||
wp_color_management_surface_v1_set_image_description(window->wl.color_management, _glfw.wl.color_manager.image_description, WP_COLOR_MANAGER_V1_RENDER_INTENT_PERCEPTUAL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue