diff --git a/Makefile.mak b/Makefile.mak index 8a5e8c12..69e8b2f2 100644 --- a/Makefile.mak +++ b/Makefile.mak @@ -56,7 +56,7 @@ th05:: $(TH05:\=bin\th05\) .obj.com: tlink /t /3 $** -bin\Pipeline\grzview.com: Pipeline\grzview.cpp th01\formats\grz.cpp bin\th01\f_imgd.obj platform\x86real\pc98\palette.cpp +bin\Pipeline\grzview.com: Pipeline\grzview.cpp th01\formats\grz.cpp platform\x86real\pc98\palette.cpp $(CC) $(CFLAGS) -Z -DGAME=1 -mt -lt -nbin\Pipeline\ @&&| $** | masters.lib diff --git a/Pipeline/grzview.cpp b/Pipeline/grzview.cpp index 5e10b8de..d359c3f8 100644 --- a/Pipeline/grzview.cpp +++ b/Pipeline/grzview.cpp @@ -8,6 +8,12 @@ #include "platform/x86real/pc98/palette.hpp" #include "th01/formats/grz.h" +// Copied from th01/formats/img_data.cpp. Unfortunate, but better than linking +// in or separately compiling this translation unit. +uint8_t* rle_streams[GRX_COUNT]; +dots8_t* planar_streams[GRX_COUNT][PLANAR_STREAM_PER_GRX_COUNT]; +uint8_t planar_stream_count[GRX_COUNT]; + void grcg_setcolor_rmw(vc2 col) { grcg_setcolor(GC_RMW, col);