The RenderTarget.willResize method will now check if the values given to it are actually numbers. If not it will return false.

This commit is contained in:
Richard Davey 2024-10-10 16:54:34 +01:00
parent acc96c74a5
commit c6caba7598

View file

@ -256,6 +256,11 @@ var RenderTarget = new Class({
*/
willResize: function (width, height)
{
if (typeof width !== 'number' || typeof height !== 'number')
{
return false;
}
width = Math.round(width * this.scale);
height = Math.round(height * this.scale);