X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fsoft%2Fvga.c;h=292fdde1f48114c496073fb9e240e9857993ea6b;hb=30a1e51f4672eed675ef310d67adabc36e3146fc;hp=63b5f65b7f104ef2204b2058a6dfb6c6fe9266fa;hpb=ef16dea09f87b15fc6d58fae0aa0832e0648c00e;p=flatwaifu.git diff --git a/src/soft/vga.c b/src/soft/vga.c index 63b5f65..292fdde 100644 --- a/src/soft/vga.c +++ b/src/soft/vga.c @@ -24,6 +24,8 @@ #include "files.h" #include "system.h" +#include "common/endianness.h" + #include #include @@ -32,8 +34,8 @@ int SCRH = 600; char fullscreen = OFF; byte bright[256]; -byte mixmap[256][256]; -byte clrmap[256*12]; +byte *mixmap; /* [256][256] */ +byte *clrmap; /* [256*12] */ byte *buffer; int buf_w, buf_h, pitch; @@ -165,7 +167,8 @@ void smoke_sprf (int x, int y, byte c) { c = c + bright[t]; c += 0x60; c ^= 0xF; - putpixel(x,y,mixmap[c][t]); + //putpixel(x,y,mixmap[c][t]); + putpixel(x, y, mixmap[t * 256 + c]); } void flame_sprf (int x, int y, byte c) {