Hi all,

This is my first post although I've been reading the web forum for a few months 
now. I'm having a problem displaying images properly through fltk, but first 
let me describe my setup.

the software I'm using:
ARM processor
linux 2.6.8.1 kernel
microwindows 0.91
nxlib 0.45
fltk 1.1.7

Now the problem, when I display images(PNG's at the moment but it happens with 
all images) through fltk I'm noticing that all colors in the white range from 
0xFFFFFF through 0xF9F9F9 get converted to black. When I display the same image 
through just the microwindows routines only 0xFFFFFF is blacked out. I'm 
curious why this conversion is happening and if I am encountering a known issue 
or am I encountering a problem with some layer of my development chain?

this is the program I am using to display images:
Fl_PNG_Image *pimg;

Fl_Single_Window* make_window() {
  Fl_Single_Window* w;

  { Fl_Single_Window* o = new Fl_Single_Window(320, 240);
    w = o;

    { Fl_Box* o = new Fl_Box(0, 0, 320, 240);
      o->image(pimg);
    }

    o->clear_border();
    o->end();
  }
  return w;
}

int main(int argc, char **argv) {
  Fl_Single_Window *w;

  fl_register_images();

  pimg = new Fl_PNG_Image(argv[1]);

  w = make_window();

  Fl::visual(FL_RGB);

  w->show();
  return Fl::run();
}

nothing too complicated.

thanks for taking a look,
Mike McCune
Navigation Solutions
248 282 5407
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to