Author Topic: grab sprite - mac osx x86  (Read 1566 times)

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4397
    • View Profile
    • FUED
grab sprite - mac osx x86
« 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.

MrTAToad

  • Guest
Re: grab sprite - mac osx x86
« Reply #1 on: 2012-Dec-22 »
On OSX you need to unload all graphics before a screen resolution change and then reload them

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4397
    • View Profile
    • FUED
Re: grab sprite - mac osx x86
« Reply #2 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:

MrTAToad

  • Guest
Re: grab sprite - mac osx x86
« Reply #3 on: 2012-Dec-22 »
Just make sure all graphics are unloaded, otherwise you will get the white blocks!