I think it's a little stupid that you have to OpenScreen() before you can LoadSprite()
Because I want to load all the resources first and then if they are successfully loaded; open the screen.
Could it be done?
Be able to load a sprite before opening the screen
- Joakim Christiansen
- Addict
- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
It was possible before a bug was introduced in PB 3.93 that prevented this from happening, it has been reported, and have not been fixed to this day.
Reference: http://www.purebasic.fr/english/viewtop ... ght=sprite See my 2nd post down. It links to the post on the bug forums concerning the bug. However, due to several posts being wiped on these forums ... grrr ... someone deleted that thread.
Anyway, yes, it was possible before the bug was introduced. Hopefully Fred will fix it before PB 4.0 final.
Reference: http://www.purebasic.fr/english/viewtop ... ght=sprite See my 2nd post down. It links to the post on the bug forums concerning the bug. However, due to several posts being wiped on these forums ... grrr ... someone deleted that thread.
Anyway, yes, it was possible before the bug was introduced. Hopefully Fred will fix it before PB 4.0 final.
- Joakim Christiansen
- Addict
- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
No it was never possible (even in previous PB version) because a sprite maps the screen format, so without a screen how would you know the format ? It would be silly to allow the sprite loading and when the screen is opened, convert all the sprite to video screen format.
Shannara: the bug you point out is removed from the bug report so i assume it was not that, as it was already fixed.
Shannara: the bug you point out is removed from the bug report so i assume it was not that, as it was already fixed.
The only thing I know, was that I was able to do that previous to that version, I even posted code on that deleted thread on how to do it, and people was able to confirm between the two versions. Plus, we was never able to use the code from that one version foward. That is all I know.
So myself and others knew it was possible, whether it was a bug in the compiler that allowed us to do it previously or not. But now we cant ... So I was only relaying past information
So myself and others knew it was possible, whether it was a bug in the compiler that allowed us to do it previously or not. But now we cant ... So I was only relaying past information
