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 c0f256c..6882aaa 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,