nanogui: mw-0.91 to current tarball, white is blue?
Subject:
mw-0.91 to current tarball, white is blue?
From:
"Joseph Lopes" ####@####.####
Date:
25 May 2011 14:49:11 -0000
Message-Id: <0C60C7DF275A3B46977AA77B8308FECE05BDD1@incex.optibase.com>
Hello Greg,
I did a simple replacement of my 0.91 source with the current snapshot. I edited the config correctly for my imx31 arm11 platform. I also set:
#define MWPIXEL_FORMAT MWPF_TRUECOLOR565 in mwtypes.h
and,
#if MWPIXEL_FORMAT == MWPF_PALETTE
colorval = GETPALENTRY(gr_palette, pixelval);
#else
colorval = PIXEL565TOCOLORVAL(pixelval);
#endif
and
#if MWPIXEL_FORMAT == MWPF_PALETTE
*(MWPIXELVALHW *)outbuf = GdFindNearestColor(gr_palette,
gr_palsize, colorval);
#else
*(MWPIXELVALHW *)outbuf = COLOR2PIXEL565(colorval);
#endif
in devdraw.c
Building went OK, no problems. But when I run nano-X the whites are light blue, red is a greenish grey, and the display is dim.
Simply reload my 0.91 build will correct the color problem.
I have hunted around but I seem alone on this one, the PSD struct members appear to be the same settings on each build, as they should be:
92b
psd->xres, psd->yres, psd->ncolors, psd->data_format, type, visual, psd->bpp);
240x 320x 65536 x80000 0 2 16
psd->xres, psd->yres, (psd->pixtype == MWPF_TRUECOLOR555)? 15: psd->bpp, psd->pitch, type, visual, psd->ncolors, psd->pixtype);
240x 320x 16 480 0 2 65536 5
91
psd->xres, psd->yres, psd->ncolors, psd->linelen, type, visual, psd->bpp);
240x 320x 65536 480 0 2 16
psd->xres, psd->yres, (psd->pixtype == MWPF_TRUECOLOR555)? 15: psd->bpp, psd->pitch, type, visual, psd->ncolors, psd->pixtype);
240x 320x 16bpp 0 2 65536 5
Any clues?
j.lopes