Hello!

Today I updated my FLTK-2 project to the latest build (5782), I was using build 
5567 till now.

Nearly everything works fine, instead of loading png-files as I did before, it 
looked like that:

this->Image_normal = fltk::pngImage::get(_normal);
// after this call this->Image_normal->width() == -1
this->Image_normal->update();
// after this call this->Image_normal->width() == correct width!
// same with height

Well but today I noticed that the methode fltk::SharedImages::update() doesn`t 
exist anymore ...
I have to call fltk::SharedImage::measure(int &w, &h) like this:

this->Image_normal = fltk::pngImage::get(_normal);
// after this call this->Image_normal->width() and ...->height == 12
// it doesn`t mater of which size the png-images are ...
int ___w = 0, ___h = 0;
this->Image_normal->measure(___w,___h);
// the size of the image is correct now

Okay, I could fix my problem seen above, but why did you remove the 
update()-methode and why do all images have a width and height of 12 after 
calling get(const char*); ? Or did I sth wrong?

Thx for your explainations!
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to