The code below works fine in linux. The image displays.
Using the same code under windows does not show the
image. All i get is the window with its gray background.
Executing the code does not produce any error message.
What am I doing wrong?
Any clues are appreciated!
FYI this is done with fltk-1.1.10
---------------------------------
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Shared_Image.H>
#include <FL/Fl_JPEG_Image.H>
#include <FL/Fl_Box.H>
#include <FL/fl_draw.H>
int main() {
fl_register_images();
Fl_Window win(720,486);
Fl_Box box(10,10,720-20,486-20);
Fl_JPEG_Image jpg("foo.jpg");
box.image(jpg);
win.show();
return(Fl::run());
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk