From b5885c43eb479d1ea8beb71aac09b118a08cb855 Mon Sep 17 00:00:00 2001 From: Jerome67000 Date: Sat, 6 Jan 2018 13:10:37 +0100 Subject: Fix crash when using Image.resize() without calling Image.create() first --- doc/classes/Image.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/classes') diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml index a01ffc99b..80bef2b38 100644 --- a/doc/classes/Image.xml +++ b/doc/classes/Image.xml @@ -395,6 +395,7 @@ Sets the [Color] of the pixel at [code](x, y)[/code] if the image is locked. Example: [codeblock] var img = Image.new() + img.create(img_width, img_height, false, Image.FORMAT_RGBA8) img.lock() img.set_pixel(x, y, color) # Works img.unlock() -- cgit v1.2.3-70-g09d2