From 722dfab94db03f271b1e82a607bd0db8c733129b Mon Sep 17 00:00:00 2001 From: "Anton E. Gavrilov" Date: Sun, 12 Mar 2000 15:52:37 +0000 Subject: [PATCH] Draw_BeginDisc() is working now. --- common/draw.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/draw.c b/common/draw.c index 1f14891..22ed989 100644 --- a/common/draw.c +++ b/common/draw.c @@ -974,7 +974,10 @@ Call before beginning any disc IO. */ void Draw_BeginDisc (void) { -// D_BeginDirectRect (vid.width - 24, 0, draw_disc->data, 24, 24); + if (!draw_disc) + return; + + D_BeginDirectRect (vid.width - 24, 0, draw_disc->data, 24, 24); } @@ -988,6 +991,8 @@ Call after completing any disc IO */ void Draw_EndDisc (void) { + if (!draw_disc) + return; D_EndDirectRect (vid.width - 24, 0, 24, 24); }