From 4f7b6894144f400d73cf4f2f0d5eff8f94f48b42 Mon Sep 17 00:00:00 2001 From: b Date: Sun, 13 Nov 2022 14:35:01 +0000 Subject: [PATCH] fix make & upscale bugs --- core.c | 3 +-- makefile | 2 +- makefile.1.mak | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core.c b/core.c index fc3ddf6..9481898 100644 --- a/core.c +++ b/core.c @@ -934,12 +934,11 @@ ILuint upscale_value (ILubyte x, ILint bytes) y <<= 8; y |= x; } + return y; } ILubyte downscale_value (ILuint x, ILint bytes) { - ILint i; - return (ILubyte)(x >> (8 * (bytes-1))); } diff --git a/makefile b/makefile index e163368..603d6ed 100644 --- a/makefile +++ b/makefile @@ -31,7 +31,7 @@ CONFIGURE = /botm/bin/config/configure.pl CONFIGURE_CMD = $(PERL) $(CONFIGURE) $(CONFIGFILE) CC =gcc -###MAKE_CG: CF=-g -Wall +CF =-g -Wall L_IL =-lIL L_CGI=-lcgi diff --git a/makefile.1.mak b/makefile.1.mak index 9f6b54d..b05a964 100644 --- a/makefile.1.mak +++ b/makefile.1.mak @@ -31,7 +31,7 @@ CONFIGURE = /botm/bin/config/configure.pl ###MAKE_CONFIGURE: CONFIGURE_CMD = $(PERL) $(CONFIGURE) $(CONFIGFILE) ###MAKE_CC: CC=gcc -###MAKE_CG: CF=-g -Wall +###MAKE_CF: CF=-g -Wall ###MAKE_L_IL: L_IL=-lIL ###MAKE_L_CGI: L_CGI=-lcgi -- 2.30.2