FLTK logo

Re: [fltk/fltk] FLTK and WIN10 and NMAKE (Issue #496)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] FLTK and WIN10 and NMAKE (Issue #496) szukw000 Sep 29, 2022  
 

@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 ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.