nanogui: Problem regarding image displaying


Previous by date: 10 Oct 2006 17:23:58 +0100 Re: Problem regarding image displaying, Darren Legge
Next by date: 10 Oct 2006 17:23:58 +0100 Re: Problem regarding image displaying, Darren Legge
Previous in thread: 10 Oct 2006 17:23:58 +0100 Re: Problem regarding image displaying, Darren Legge
Next in thread: 10 Oct 2006 17:23:58 +0100 Re: Problem regarding image displaying, Darren Legge

Subject: RE: [nanogui] Problem regarding image displaying
From: "Martin Kajdas" ####@####.####
Date: 10 Oct 2006 17:23:58 +0100
Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC2291578@mkmail.MKPROD.COM>

The patches that we provided had to do with the image problem.
Now you are talking about the text displaying problem.
For that I have two patches (for 5:6:5 mode which I am using and I
believe that you too).
They will have to be modified for other modes than 5:6:5 (16 bit RGB)
Martin






-----Original Message-----
From: Darren Legge ####@####.####
Sent: Tuesday, October 10, 2006 8:58 AM
To: ####@####.####
Subject: RE: [nanogui] Problem regarding image displaying


Thanks for the patches guys, but unfortunately I still have the problem.

I thought the problem must be in nxlib somwhere since if I create a
normal nano-X application, white shows correctly as white.
So,
	GrSetGCForeground(gc, GR_COLOR_RED); 
	GrSetGCBackground(gc, GR_COLOR_WHITE );
	draw_text("Hello", 95, gc);
produces red text with a white background.

If I write a normal X11 program and link with nxlib (not using FLTK),
and do this:
win = XCreateSimpleWindow(display, RootWindow(display,screen),
			  x, y, width, height, border_width,
			  0,
			  0xFFFFFF);
I get black text on a white background, which is correct too.

All 'white' from fltk programs (ie using nxlib) comes out as black
though. I'm not sure where to look next at the moment...presumably I'll
have to look at what calls fltk makes to nxlib. Any suggestions ?

Darren.

[Content type application/octet-stream not shown. Download]

[Content type application/octet-stream not shown. Download]

Previous by date: 10 Oct 2006 17:23:58 +0100 Re: Problem regarding image displaying, Darren Legge
Next by date: 10 Oct 2006 17:23:58 +0100 Re: Problem regarding image displaying, Darren Legge
Previous in thread: 10 Oct 2006 17:23:58 +0100 Re: Problem regarding image displaying, Darren Legge
Next in thread: 10 Oct 2006 17:23:58 +0100 Re: Problem regarding image displaying, Darren Legge


Powered by ezmlm-browse 0.20.