Re: [SailfishDevel] ListView , Image with large height and EGL errors (AL13N)

2019-05-31 Thread Slava Monich
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

Re: [SailfishDevel] Wiki page for writing .spec files

2019-05-31 Thread David Llewellyn-Jones
On 31/05/2019 10:17, Oskar Roesler via Devel wrote:
> Hello, are there anywhere instructions how to write a .spec file for
> SFOS or do I have to use the ones from CentOS? Regards, Oskar

Hey Oskar,

There's this info about writing the .yaml files which can be used to
generate sensible SFOS spec files:

https://sailfishos.org/wiki/Application_SDK_Packaging_Apps#The_.yaml_File

Generating some valid spec files this way may provide a good starting
point. I'd also say it's worth being familiar with the general spec
format. There's lots of good documentation out there for this:

https://rpm.org/documentation.html

David
-- 
Website: http://www.flypig.co.uk
<>___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] ListView , Image with large height and EGL errors

2019-05-31 Thread David Llewellyn-Jones
On 31/05/2019 02:57, AL13N wrote:
> I have a ListView with an ListItem delegate and an Image in it;
> 
> when i have 2 images with a large height on it next to each other, after
> scrolling to it, i get an EGL Texture error .

Hey AL13N,

Unless someone else already knows the answer, could you provide some QML
-- a minimal working example -- that generates the error? This would be
a big help in understanding what's going on.

David
-- 
Website: http://www.flypig.co.uk
<>___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] ListView , Image with large height and EGL errors (AL13N)

2019-05-31 Thread AL13N

I actually did:

width: parent.width
asynchronous: true
cache: false
sourceSize.width: width

for this thing; the height it still like 8000 pixels high, even with 
width == the jolla1 pixel width.
thing is, i get black for those long images, and an EGL Texture error. 
short ones are done fine.


but, if i do the image on its own, then it works fine. so, it's 
something to do with the ListView and the way it instantiates it...


Dmitriy Sedov schreef op 2019-05-31 14:05:

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


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] ListView , Image with large height and EGL errors (AL13N)

2019-05-31 Thread Dmitriy Sedov
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

Re: [SailfishDevel] Wiki page for writing .spec files

2019-05-31 Thread AL13N

You can probably base your .spec file on one the many opensource apps:

eg: mine: 
https://github.com/alien9/harbour-followme/blob/master/harbour-followme.spec


mine is for a qml-only with pyotherside app, but you can probably use it 
as a base for your own.


Oskar Roesler via Devel schreef op 2019-05-31 09:17:

Hello,

are there anywhere instructions how to write a .spec file for SFOS or
do
I have to use the ones from CentOS?

Regards,

Oskar


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Wiki page for writing .spec files

2019-05-31 Thread Oskar Roesler via Devel
Hello, are there anywhere instructions how to write a .spec file for
SFOS or do I have to use the ones from CentOS? Regards, Oskar



signature.asc
Description: OpenPGP digital signature
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org