Disabled hq4x stuff by default...

This commit is contained in:
William Kendrick 2004-09-15 05:44:47 +00:00
parent 8fd5b7f269
commit 44732279ae
2 changed files with 16 additions and 5 deletions

View file

@ -6,7 +6,7 @@
# bill@newbreedsoftware.com # bill@newbreedsoftware.com
# http://www.newbreedsoftware.com/tuxpaint/ # http://www.newbreedsoftware.com/tuxpaint/
# June 14, 2002 - August 19, 2004 # June 14, 2002 - September 14, 2004
# Where to install things: # Where to install things:
@ -65,6 +65,11 @@ LOCALE_PREFIX=$(PREFIX)/share/locale/
NOSOUNDFLAG=__SOUND NOSOUNDFLAG=__SOUND
# Don't build with hqxx code yet...
# HQXX_O = obj/hqxx.o obj/hq4x.o
# HQXX_H = src/hqxx.h src/hq4x.h
# Libraries, paths, and flags: # Libraries, paths, and flags:
SDL_LIBS=$(shell sdl-config --libs) -lSDL_image -lSDL_ttf $(SDL_MIXER_LIB) SDL_LIBS=$(shell sdl-config --libs) -lSDL_image -lSDL_ttf $(SDL_MIXER_LIB)
@ -678,13 +683,14 @@ install-man:
@chmod a+rx,g-w,o-w $(MAN_PREFIX)/man1/tuxpaint-import.1.gz @chmod a+rx,g-w,o-w $(MAN_PREFIX)/man1/tuxpaint-import.1.gz
# Build the program! # Build the program!
tuxpaint: obj/tuxpaint.o obj/hqxx.o obj/hq4x.o $(ARCH_LIBS) tuxpaint: obj/tuxpaint.o $(HQXX_O) $(ARCH_LIBS)
@echo @echo
@echo "...Linking Tux Paint..." @echo "...Linking Tux Paint..."
@$(CC) $(CFLAGS) $(SDL_CFLAGS) $(DEFS) \ @$(CC) $(CFLAGS) $(SDL_CFLAGS) $(DEFS) \
-o tuxpaint obj/tuxpaint.o obj/hqxx.o obj/hq4x.o \ -o tuxpaint obj/tuxpaint.o $(HQXX_O) \
$(ARCH_LIBS) $(SDL_LIBS) \ $(ARCH_LIBS) $(SDL_LIBS) \
-lm $(ARCH_LINKS) -lm $(ARCH_LINKS)
@$(RSRC_CMD) @$(RSRC_CMD)
@ -696,7 +702,7 @@ tuxpaint: obj/tuxpaint.o obj/hqxx.o obj/hq4x.o $(ARCH_LIBS)
obj/tuxpaint.o: src/tuxpaint.c obj \ obj/tuxpaint.o: src/tuxpaint.c obj \
src/tools.h src/titles.h src/colors.h src/shapes.h \ src/tools.h src/titles.h src/colors.h src/shapes.h \
src/magic.h src/sounds.h src/tip_tux.h src/great.h \ src/magic.h src/sounds.h src/tip_tux.h src/great.h \
src/hqxx.h src/hq4x.h \ $(HQXX_H) \
src/mouse/arrow.xbm src/mouse/arrow-mask.xbm \ src/mouse/arrow.xbm src/mouse/arrow-mask.xbm \
src/mouse/hand.xbm src/mouse/hand-mask.xbm \ src/mouse/hand.xbm src/mouse/hand-mask.xbm \
src/mouse/insertion.xbm src/mouse/insertion-mask.xbm \ src/mouse/insertion.xbm src/mouse/insertion-mask.xbm \

View file

@ -66,9 +66,12 @@
#include <ctype.h> #include <ctype.h>
#include <math.h> #include <math.h>
#include <time.h> #include <time.h>
#ifdef USE_HQ4X
#include "hqxx.h" #include "hqxx.h"
#include "hq3x.h" #include "hq3x.h"
#include "hq4x.h" #include "hq4x.h"
#endif
#include <locale.h> #include <locale.h>
#include <iconv.h> #include <iconv.h>
@ -5042,9 +5045,11 @@ void setup(int argc, char * argv[])
SDL_Flip(screen); SDL_Flip(screen);
#ifdef USE_HQ4X
/* Init high quality scaling stuff: */ /* Init high quality scaling stuff: */
InitLUTs(RGBtoYUV); InitLUTs(RGBtoYUV);
#endif
/* Load other images: */ /* Load other images: */