GLBasic forum

Main forum => Bug Reports => Topic started by: erico on 2012-Dec-22

Title: grab sprite - mac osx x86
Post by: erico on 2012-Dec-22
Hi, I'm not sure this is new but...
...I'm currently scaling my game from 320x240 to the likes of 2,3,4x. I want it windowed on desktops.

So I first create final resolution window, then draw everything in the 320x240 area , then, should 2x,3x or 4x get selected, grabsprite and paste it scaled with zoomsprite.

Works fine on Pc and on caanoo too.

But today I took a test build to a friends house on his osx 10.6.8.

If I request a resolution change while in game, the window gets changed but it becomes white after a frame of visual glitches and won't display the game anymore.
It dosen't lock, things keep on going under the white.

I suspect it has to do with grabsprite.

One strange stuff, is that if I pre-set on code the scalling to be 2x or higher, it displays nice on mac as a first run, it just craps up if I change it while it is running.

Anyways, in case it is a bug, anyone has an idea how can I change app res on the go?
I could go around this by having a res option on menu and things go on from there I think, but am not sure, would need to solve the scalling system first.
Title: Re: grab sprite - mac osx x86
Post by: MrTAToad on 2012-Dec-22
On OSX you need to unload all graphics before a screen resolution change and then reload them
Title: Re: grab sprite - mac osx x86
Post by: erico on 2012-Dec-22
Thanks mr T, so a probable way to go is loading non existent imgs and anim sprite before changing the res, or just reload things, before res change, should do the trick then.
Thanks for a solution! :good:
Title: Re: grab sprite - mac osx x86
Post by: MrTAToad on 2012-Dec-22
Just make sure all graphics are unloaded, otherwise you will get the white blocks!