From: John Tsiombikas Date: Sun, 22 Dec 2019 09:07:01 +0000 (+0200) Subject: foo X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=commitdiff_plain;h=b9ebecd3c02d5a5570d9b64190d76da78edb2d64 foo --- diff --git a/Makefile.dj b/Makefile.dj index af00af7..a018ddb 100644 --- a/Makefile.dj +++ b/Makefile.dj @@ -16,11 +16,12 @@ endif inc = -Isrc -Isrc/scr -Isrc/dos -Ilibs -Ilibs/imago/src -Ilibs/anim/src -Ilibs/mikmod/include opt = -O3 -ffast-math -fno-strict-aliasing dbg = -g +#prof = -pg warn = -pedantic -Wall -Wno-unused-function -Wno-unused-variable CC = $(TOOLPREFIX)gcc AR = $(TOOLPREFIX)ar -CFLAGS = $(warn) -march=pentium $(dbg) $(opt) $(inc) +CFLAGS = $(warn) -march=pentium $(dbg) $(opt) $(prof) $(inc) LDFLAGS = libs/imago/imago.dja libs/anim/anim.dja libs/mikmod/dos/libmikmod.a ifneq ($(hostsys), dos) @@ -29,7 +30,7 @@ all: data $(bin) endif $(bin): $(obj) imago anim mikmod - $(CC) -o $@ -Wl,-Map=ld.map $(obj) $(LDFLAGS) + $(CC) -o $@ -Wl,-Map=ld.map $(prof) $(obj) $(LDFLAGS) %.cof: %.asm nasm -f coff -o $@ $< diff --git a/src/scr/infcubes.c b/src/scr/infcubes.c index 3a21513..5f9d81e 100644 --- a/src/scr/infcubes.c +++ b/src/scr/infcubes.c @@ -110,7 +110,7 @@ static void draw(void) g3d_mult_matrix(sball_matrix); } - memset(fb_pixels, 0, fb_width * fb_height * 2); + /*memset(fb_pixels, 0, fb_width * fb_height * 2);*/ g3d_polygon_mode(G3D_FLAT); g3d_enable(G3D_TEXTURE_2D);