nanogui: Problem regarding image displaying


Previous by date: 10 Oct 2006 16:58:01 +0100 Re: Problem regarding image displaying, Greg Haerr
Next by date: 10 Oct 2006 16:58:01 +0100 Re: Problem regarding image displaying, Martin Kajdas
Previous in thread: 10 Oct 2006 16:58:01 +0100 Re: Problem regarding image displaying, Greg Haerr
Next in thread: 10 Oct 2006 16:58:01 +0100 Re: Problem regarding image displaying, Martin Kajdas

Subject: RE: [nanogui] Problem regarding image displaying
From: "Darren Legge" ####@####.####
Date: 10 Oct 2006 16:58:01 +0100
Message-Id: <s52bd125.071@mail.energytechnologycontrol.com>

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.

-------------------------------------------------------------------------------------------


***** REDUCE WASTE! PLEASE DO NOT PRINT THIS EMAIL UNLESS ABSOLUTELY NECESSARY *****

This Email is intended only for the person(s) to whom it is addressed and may contain confidential information. If you have received this Email in error, please notify the sender and destroy any copies.

The content of this Email may not represent the views of Energy Technology and Control Ltd.

This Email has been scanned for viruses by Sophos Antivirus and is believed to be virus-free. 

Energy Technology and Control Ltd
25 North Street
Lewes
East Sussex
BN7 2PE
UK

Tel: +44 1273 480667

Email: ####@####.####

####@####.####

Previous by date: 10 Oct 2006 16:58:01 +0100 Re: Problem regarding image displaying, Greg Haerr
Next by date: 10 Oct 2006 16:58:01 +0100 Re: Problem regarding image displaying, Martin Kajdas
Previous in thread: 10 Oct 2006 16:58:01 +0100 Re: Problem regarding image displaying, Greg Haerr
Next in thread: 10 Oct 2006 16:58:01 +0100 Re: Problem regarding image displaying, Martin Kajdas


Powered by ezmlm-browse 0.20.