diff options
author | SimonP <simonp.git@gmail.com> | 2020-06-09 13:26:48 +0200 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2020-07-20 15:54:39 +0200 |
commit | cc36135595fad70ce81697d7c98eb8a26cec9a72 (patch) | |
tree | 2b59ad189a430b3af3ee65890b57ee3db0d3c790 | |
parent | 533cc6ca046a9e59503bd0763ab28f66284f7dc7 (diff) |
xwayland: Initialise values in xwlVidModeGetGamma()
ProcVidModeGetGamma() relies on GetGamma() to initialise values if it
returns TRUE. Without this, we're sending uninitialised values to
clients.
Fixes: xorg/xserver#1040
(cherry picked from commit 6748a4094158d2bde1630b915a5318f9f22c8e0a)
-rw-r--r-- | hw/xwayland/xwayland-vidmode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xwayland/xwayland-vidmode.c b/hw/xwayland/xwayland-vidmode.c index 0bcd11401..d25d1aca1 100644 --- a/hw/xwayland/xwayland-vidmode.c +++ b/hw/xwayland/xwayland-vidmode.c @@ -332,6 +332,7 @@ static Bool xwlVidModeGetGamma(ScreenPtr pScreen, float *red, float *green, float *blue) { /* Unsupported for now, but pretend it works */ + *red = *green = *blue = 1.0f; return TRUE; } |