Subject:
Re: [nanogui] mw-0.91 to current tarball, white is blue?
From:
"Greg Haerr" ####@####.####
Date:
26 May 2011 16:55:59 -0000
Message-Id: <05e501cc1bc5$87946b60$0300a8c0@RDP>
> define MWPIXEL_FORMAT MWPF_TRUECOLOR565 in mwtypes.h
What did you set MWPF_PIXELFORMAT to in the config file?
The above is supposed to be set in config only, not mwtypes.h.
> #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
These mods are in GdTranslateArea, which IIRC isn't actually
called or used.
> 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.
What exactly is drawing those colors? Are you drawing images, or text,
or pure background colors? I'm trying to understand the engine routines
called, image, fillrect, or text.
I'm not sure what the problem is yet. It would be interesting to know
whether solid background fills work, (many demos do this), as well
as text or line draw colors, or whether the problem is just when
drawing images. The image drawing routines have changed greatly,
and use convblit functions which may need changing. Older
point-by-point drawing can be done by setting convblit = NULL
in GdDrawImage for instance, which will force the older slow methods.
What is the exact layout of your truecolor framebuffer, for each 16 bit
word?
Regards,
Greg
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
---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####