[Openchrome-devel] xf86-video-openchrome: 2 commits - configure.ac src/via_display.c
Kevin Brace
kevinbrace at kemper.freedesktop.org
Sat Nov 5 03:24:25 UTC 2016
configure.ac | 2 +-
src/via_display.c | 20 ++++++++++----------
2 files changed, 11 insertions(+), 11 deletions(-)
New commits:
commit 59eacc65e17715060f486e5ee2da6de962545e63
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Fri Nov 4 20:23:47 2016 -0700
Version bumped to 0.5.171
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/configure.ac b/configure.ac
index bae5c74..b5c0612 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@
# Initialize Autoconf
AC_PREREQ(2.57)
AC_INIT([xf86-video-openchrome],
- [0.5.170],
+ [0.5.171],
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome],
[xf86-video-openchrome])
commit 7a55ef113d0c17ca34ca7d43edb493eb5c63b979
Author: Kevin Brace <kevinbrace at gmx.com>
Date: Fri Nov 4 20:22:41 2016 -0700
Turning off gamma correction for both IGA1 and IGA2
Turning on gamma correction for 16-bit and 32-bit (24-bit) color
depth caused the screen color to get completely messed up in
some models and / or OS combinations, so it will be turned off
to remedy this regression.
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
diff --git a/src/via_display.c b/src/via_display.c
index 8cd46f5..2bfe2a7 100644
--- a/src/via_display.c
+++ b/src/via_display.c
@@ -3957,7 +3957,7 @@ iga1_crtc_gamma_set(xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue,
VIALoadRgbLut(pScrn, 0, size, colors);
/* Turn gamma correction off. */
- viaIGA1SetGamma(pScrn, 0x00);
+ viaIGA1SetGamma(pScrn, FALSE);
break;
case 16:
/* IGA1 will access the palette LUT. */
@@ -3965,8 +3965,8 @@ iga1_crtc_gamma_set(xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue,
VIALoadRgbLut(pScrn, 0, size, colors);
- /* Turn gamma correction on. */
- viaIGA1SetGamma(pScrn, 0x01);
+ /* Turn gamma correction off. */
+ viaIGA1SetGamma(pScrn, FALSE);
break;
case 24:
case 32:
@@ -3975,8 +3975,8 @@ iga1_crtc_gamma_set(xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue,
VIALoadRgbLut(pScrn, 0, size, colors);
- /* Turn gamma correction on. */
- viaIGA1SetGamma(pScrn, 0x01);
+ /* Turn gamma correction off. */
+ viaIGA1SetGamma(pScrn, FALSE);
break;
default:
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
@@ -4366,7 +4366,7 @@ iga2_crtc_gamma_set(xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue,
VIALoadRgbLut(pScrn, 0, size, colors);
/* Turn gamma correction off. */
- viaIGA2SetGamma(pScrn, 0x00);
+ viaIGA2SetGamma(pScrn, FALSE);
break;
case 16:
/* IGA2 will access the palette LUT. */
@@ -4374,8 +4374,8 @@ iga2_crtc_gamma_set(xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue,
VIALoadRgbLut(pScrn, 0, size, colors);
- /* Turn gamma correction on. */
- viaIGA2SetGamma(pScrn, 0x01);
+ /* Turn gamma correction off. */
+ viaIGA2SetGamma(pScrn, FALSE);
break;
case 24:
case 32:
@@ -4384,8 +4384,8 @@ iga2_crtc_gamma_set(xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue,
VIALoadRgbLut(pScrn, 0, size, colors);
- /* Turn gamma correction on. */
- viaIGA2SetGamma(pScrn, 0x01);
+ /* Turn gamma correction off. */
+ viaIGA2SetGamma(pScrn, FALSE);
break;
default:
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
More information about the Openchrome-devel
mailing list