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

---------------------------------------------------------------------
To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org
For additional commands, e-mail: nanogui-h...@linuxhacker.org

Reply via email to