fixed creating custom element images (RocksCE.ilbm) for SDL2
authorHolger Schemel <info@artsoft.org>
Fri, 6 Jan 2017 17:29:13 +0000 (18:29 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 6 Jan 2017 17:29:13 +0000 (18:29 +0100)
src/files.c

index c0f256c73c27016f42c2af688f47f97cc0769111..6882aaa584737ed2404631c52d2828526d0e05ca 100644 (file)
@@ -10209,6 +10209,8 @@ void CreateCustomElementImages(char *directory)
 
   SDLInitVideoDisplay();
 
+  ReCreateBitmap(&backbuffer, video.width, video.height);
+
   src_bitmap = LoadImage(src_filename);
 
   bitmap = CreateBitmap(TILEX * 16 * 2,