From: Holger Schemel Date: Sat, 16 Apr 2022 13:58:30 +0000 (+0200) Subject: fixed crash with "autotest" due to clearing undefined bitmap rectangle X-Git-Tag: 4.3.2.0~6 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1cfe949b7c5bc79354640a42cd63425177134feb;p=rocksndiamonds.git fixed crash with "autotest" due to clearing undefined bitmap rectangle --- diff --git a/src/libgame/system.c b/src/libgame/system.c index 196e15dc..c41fbef2 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -906,6 +906,9 @@ void FadeRectangle(int x, int y, int width, int height, void FillRectangle(Bitmap *bitmap, int x, int y, int width, int height, Pixel color) { + if (program.headless) + return; + if (DrawingDeactivated(x, y, width, height)) return;