diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lx_display.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lx_display.c b/src/lx_display.c index 1f240f5..b46fa17 100644 --- a/src/lx_display.c +++ b/src/lx_display.c @@ -354,10 +354,11 @@ lx_crtc_gamma_set(xf86CrtcPtr crtc, CARD16 * red, CARD16 * green, */ for (i = 0; i < 256; i++) { + unsigned int val; (*red) &= 0xff00; (*green) &= 0xff00; (*blue) &= 0xff00; - unsigned int val = (*(red++) << 8) | *(green++) | (*(blue++) >> 8); + val = (*(red++) << 8) | *(green++) | (*(blue++) >> 8); df_set_video_palette_entry(i, val); } |