Those who don't like the idea of hardcoding 3264 (or any other number) in their code, can query GL_MAX_TEXTURE_SIZE instead:

https://github.com/monich/harbour-foilpics/blob/master/src/FoilPicsImageProvider.cpp#L57


Cheers,

-Slava


when i use Image with big images, i use code like this:|
Image {
     onSourceSizeChanged: {
                 if( sourceSize.width > 3264 )
                     sourceSize.width = 3264
                 if( sourceSize.height > 3264 )
                     sourceSize.height = 3264
             }
     cache: false
     asynchronous: true
}
or it just show black screen
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to