From f7e40d1ed5977c5a1b56d0ccb03917901d934f56 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Sun, 19 Sep 2021 14:19:42 -0700 Subject: [PATCH] Use symbolic constants for COLOR related subrs rather than numbers cases for subrs UNCOLORIZE-BITMAP, COLORIZE-BITMAP, COLOR-8BPPDRAWLINE (which are not compiled into current code) can have the numbers replaced by the symbolic constants that are now defined in subrs.h --- src/subr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/subr.c b/src/subr.c index afe81db..16f77ae 100644 --- a/src/subr.c +++ b/src/subr.c @@ -340,17 +340,17 @@ void OP_subrcall(int subr_no, int argnum) { C_slowbltchar(args); break; - case 0215: + case sb_UNCOLORIZE_BITMAP: POP_SUBR_ARGS; Uncolorize_Bitmap(args); break; - case 0216: + case sb_COLORIZE_BITMAP: POP_SUBR_ARGS; Colorize_Bitmap(args); break; - case 0217: + case sb_COLOR_8BPPDRAWLINE: POP_SUBR_ARGS; Draw_8BppColorLine(args); break;