X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;fp=src%2Flibgame%2Fsystem.c;h=c41fbef27494cd40806fbd4b8567f53d801da07b;hp=196e15dc72d8777dacefdff7d390f4825a071687;hb=1cfe949b7c5bc79354640a42cd63425177134feb;hpb=a83b80746af872fda08896f27e8b38303cd33bb2 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;