nanogui: FLTK colours fubar'd?


Previous by date: 9 Dec 2006 16:37:23 +0000 Re: FLTK colours fubar'd?, Warren Seymour
Next by date: 9 Dec 2006 16:37:23 +0000 Re: FLTK colours fubar'd?, Warren Seymour
Previous in thread: 9 Dec 2006 16:37:23 +0000 Re: FLTK colours fubar'd?, Warren Seymour
Next in thread: 9 Dec 2006 16:37:23 +0000 Re: FLTK colours fubar'd?, Warren Seymour

Subject: Re: [nanogui] FLTK colours fubar'd?
From: "Greg Haerr" ####@####.####
Date: 9 Dec 2006 16:37:23 +0000
Message-Id: <0dd101c71bb0$482e33d0$6401a8c0@winXP>

: Thanks for the feedback Greg- upon further inspection (ie a twelve-hour
: session) I have ascertained that I'll need to play with the RGB masks in
: XOpenDisplay- they need to be set for whatever pixel format I'm using.

This should be done automatically based on the hw bpp, and
match the macros selected by the MWPF_xxx config type
in the config file.  If you add code here, please send a patch.


 The
: problem was that my framebuffer starts in 8-bit paletted mode by default.
: Unforunately I can't use RGBA 8880 because my framebuffer doesn't support
: 32bpp.

Then why did you originally specify TRUECOLOR888 for
nano-X config?  Of course, we also support 8-bit palette mode.


: 6666 (with the upper 6-bits ignored) works great with the 'pbmtofb' test
: program I've found, but unfortunately Nano-X doesn't support this colour
: mode. It looks like I'm going to have to add this driver to Nano-X myself.
: If it all works nicely I'll submit it to you for inspection.

This driver should be fairly easy - just use the unmodified fblin24.c
24bpp driver, with all new macros for the color mixing
in include/mwtypes.h.  The driver won't be doing anything
other than reading/writing ram, it doesn't do any color
manipulation.  The macros to hack would be the
COLOR2* and PIXEL2* in include/mwtypes.h.

I'm still a bit confused as to exactly what your current
hw color format is, though, since things almost seem
to work (nano-X yes, FLTK no?)


: Just your replies let me know this project is far from dead, which I am
very
: grateful for.

If I could find a decent HTML editor that could read/write
web pages from Windows, then the web page wouldn't
be two years behind... ;-)

Regards,

Greg



: On 12/9/06, Greg Haerr ####@####.#### wrote:
: >
: > : I'm running FLTK 1.1.7, Nano-X 0.91 and NXLIB 0.45 on a Colibri PXA270
: > (ARM
: > : architecture)
: >
: > > If it's any help, when I run the FLTK colbrowser program, odd things
: > happen,
: > eg incrementing or decrementing the red slider by 1 causes a dramatic
: > change
: > in colour.
: >
: > I'm wondering if by chance the RGBA is endian-swapped
: > and ending up GRAB or something like that...  Is the ARM
: > running big-endian?
: >
: > If so, perhaps nano-X isn't in fact running properly.
: >
: > Otherwise, NXLIB is likely at fault, start perhaps
: > with some inspection and debugging in XOpenDisplay,
: > where the color format is detected.  There may also be
: > issues with images only, versus other color draws.
: > We need to ascertain exactly what sorts of things are
: > being drawn (images vs rect fills vs blits) and
: > go from there.
: >
: > Regards,
: >
: > Greg
: >
: >
: >
: >
: >
: >
: > :
: > : When I run an FLTK application (namely the test programs) my colours
are
: > : wrong - maroon background, beige text, etc.
: > :
: > : fbset says:
: > :
: > : mode "640x480-56"
: > :         # D: 25.000 MHz, H: 29.481 kHz, V: 56.155 Hz
: > :         geometry 640 480 640 480 8
: > :         timings 40000 96 48 33 10 64 2
: > :         accel false
: > :         rgba 8/0,8/0,8/0,0/0
: > : endmode
: > :
: > : I've configured Nano-X with SCREEN_PIXTYPE = MWPF_TRUECOLOR888
: > :
: > : Can anybody help me out here? It would be much obliged...
: > :
: > : Regards, Warren.
: > :
: >
: >
:


Previous by date: 9 Dec 2006 16:37:23 +0000 Re: FLTK colours fubar'd?, Warren Seymour
Next by date: 9 Dec 2006 16:37:23 +0000 Re: FLTK colours fubar'd?, Warren Seymour
Previous in thread: 9 Dec 2006 16:37:23 +0000 Re: FLTK colours fubar'd?, Warren Seymour
Next in thread: 9 Dec 2006 16:37:23 +0000 Re: FLTK colours fubar'd?, Warren Seymour


Powered by ezmlm-browse 0.20.