int real_height = MAX(1, height); // prevent zero bitmap height
int real_depth = GetRealDepth(depth);
- SDLCreateBitmapContent(new_bitmap, real_width, real_height, real_depth);
+ new_bitmap->surface = SDLCreateNativeSurface(real_width, real_height, real_depth);
new_bitmap->width = real_width;
new_bitmap->height = real_height;
int src_x, int src_y, int width, int height,
int dst_x, int dst_y)
{
+ if (program.headless)
+ return;
+
+ if (src_bitmap == NULL || dst_bitmap == NULL)
+ return;
+
if (DrawingDeactivated(dst_x, dst_y))
return;