Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / UpdateAllSpritesSprites() called on dbGet/LoadImage()

Author
Message
pgsharpe
18
Years of Service
User Offline
Joined: 9th May 2005
Location:
Posted: 10th May 2005 07:50
Under some conditions it appears that UpdateAllSpritesSprites() gets called when using dbGetImage() and dbLoadImage(). This causes me problems because UpdateAllSpritesSprites() resets the width and height of each sprite to be the width and height of its associated image. The problem is that I've resized some of my sprites in order to stretch the image and resetting the sprite's dimesions screws up my code.

Can someone tell me under what conditions UpdateAllSpritesSprites() is called? Is there some way to avoid the call? Is there a better way to set the dimensions of a sprite, e.g. by scaling, so that it won't be resized as a side-effect of an unrelated call?

Thanks
Peter

Login to post a reply

Server time is: 2024-04-23 15:26:30
Your offset time is: 2024-04-23 15:26:30