Question: Is it possible to resize a surface?

Started by froggy77, May 18, 2015, 10:23:04 PM

Previous topic - Next topic
May 18, 2015, 10:23:04 PM Last Edit: May 19, 2015, 07:28:54 PM by froggy77

Is it possible to resize a surface with something like "surface:set_size()" that seems to not exist?

I would like to to do it in a "rebuild_surface' function.

Thanks in advance.

A workaround is to create a new surface with the wanted size and draw the first one on the new one.
Another workaround is to keep only one surface with the max size and keep unused parts transparent.

Ok thank you for your advices. I managed to do what I wanted  :)
I opened a topic to share this little creation HUD: ZL Hearts
If someone finds some bugs , thank you to report it.