1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-24 07:46:59 +03:00
wezterm/window/src
Wez Furlong 9e146beb02 gui: more fun with gamma correction
On Windows, both EGL and MESA render modes were too dark.
After a bit of hunting around what I found made EGL and MESA
consistent with my default nVidia GPL rendering was:

* Tell glium that our shader outputs srgb
* Add explicit gamma conversion from linear to srgb in the shader

AFAICT, that shouldn't be required, but it seems as though something
deep in glium really wants to apply some kind of gamma conversion,
and it seems to select the wrong kind unless we set things explicitly
to SRGB.

There are some people complaining about this in
https://github.com/glium/glium/issues/1615.

I actually tried to move entirely aware from the glium srgbtexture2d
type in the hope of having explicit control over the gamma, but the
issue is in what happens to the outputs rather than the inputs.

It appears to me as though the text now looks slightly less
intense, so I think this may be what we need for the gamma issue
in https://github.com/wez/wezterm/issues/544 and potentially
also https://github.com/wez/wezterm/issues/1025

refs: https://github.com/wez/wezterm/issues/1373
2021-12-22 18:14:52 -07:00
..
bitmaps add some more metrics around get_lines_with_hyperlinks_applied + others 2021-08-01 14:50:50 -07:00
os gui: more fun with gamma correction 2021-12-22 18:14:52 -07:00
configuration.rs remove the config bridge and have window -> config directly 2021-03-23 21:56:57 -07:00
connection.rs add audible_bell config option 2021-09-26 12:55:19 -07:00
egl.rs fix some unused/unread field warnings 2021-12-10 08:18:36 -07:00
lib.rs window: allow specifying window resize increments on macos and x11 2021-09-08 22:57:42 -07:00
spawn.rs window: log/retry self-pipe-writes 2021-05-23 19:07:48 -07:00