|
|
@erco77 ,
OK, I give up.
In flimage.hh, line 92, you could find:
==================================================
class UserTree : public Fl_Tree
{
public:
UserTree(int xx, int yy, int ww, int hh)
: Fl_Tree(xx, yy, ww, hh, NULL)
{ }
virtual int handle(int event);
};
extern UserTree *tree;
==================================================
In flimage.cxx, line 127, you could find:
==================================================
UserTree *tree = NULL;
//-----------------------------------------------
int UserTree::handle(int event)
{
if(!Fl::event_inside(x(), y(), w(), h() ) )
{
return 0;
}
if(event == FL_LEAVE) return 1;
return Fl_Tree::handle(event);
}
==================================================
In PNG.cxx, line 192, you could find:
==================================================
int PNG_read_file(Canvas *canvas, const char *read_idf, size_t fsize)
{
int err;
found_ACTL = 0;
//#ifdef HIDE_BUILD_TREE
//-------------------------------------
FLImage_clear_tree();
//-------------------------------------
err = png_build_tree(read_idf, fsize);
if(err == 1) //FAILS
{
fprintf(stderr,"PNG.cxx:%d: png_build_tree fails\n",__LINE__);
return 1;
}
return err;
//#endif
#ifdef HIDE_BUILD_IMAGE
if( !found_ACTL)
{
err = png_load_file(canvas, read_idf, fsize);
return err;
}
return 0;
#endif
}//PNG_read_file()
==================================================
So, it is true: if PNG.cxx is unchanged, no image will be shown.
Only the tree using LINUX.
If you wanted an image you had to HIDE_BUILD_TREE and (un-)HIDE_BUILD_IMAGE.
Bye.
winfried
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/496/1262073850@github.com>
[ Direct Link to Message ] | |
|
| |