Current News Archived News Search News Discussion Forum Old Forum Install Programs More Downloads... Troubleshooting Source Code Format Specs. Misc. Information Non-SF Stuff Links Small banner for links to this site: |
diff --git a/drawgrp/drawgrp.cpp b/drawgrp/drawgrp.cpp
--- a/drawgrp/drawgrp.cpp
+++ b/drawgrp/drawgrp.cpp
if (pBI->nFrame == 0xFFFF)\r
pBI->pBuffer[(Y * pBI->nWidth) + X] = (signed short)clrColor;\r
else\r
- pBI->pBuffer[(pBI->nFrame * pBI->nWidth * pBI->nHeight) + (Y * pBI->nWidth) + X] = (signed short)clrColor;\r
+ //if (clrColor < 1 || clrColor > 13)\r
+ // pBI->pBuffer[(pBI->nFrame * pBI->nWidth * pBI->nHeight) + (Y * pBI->nWidth) + X] = (signed short)((BYTE)-clrColor);\r
+ //else\r
+ pBI->pBuffer[(pBI->nFrame * pBI->nWidth * pBI->nHeight) + (Y * pBI->nWidth) + X] = (signed short)clrColor;\r
}\r
\r
int main(int argc, char* argv[])\r
BI.nFrame = i;\r
for (y = 0; y < BI.nHeight; y++) {\r
for (x = 0; x < BI.nWidth; x++) {\r
- WritePixelToBuffer(&BI, x, y, 8);\r
+ WritePixelToBuffer(&BI, x, y, -1);\r
}\r
}\r
DrawGrp(hGrp,(HDC)&BI,0,0,i,0,USE_INDEX,0);\r
}\r
hGrp2 = hGrp;\r
- hGrp = CreateGrp(BI.pBuffer, GrpInfo.nFrames, GrpInfo.wMaxWidth, GrpInfo.wMaxHeight, &nGrpSize);\r
+ hGrp = CreateGrp(BI.pBuffer, GrpInfo.nFrames, GrpInfo.wMaxWidth, GrpInfo.wMaxHeight, FALSE, &nGrpSize);\r
/*HANDLE hFile;\r
hFile = CreateFile("generated ultralisk.grp", GENERIC_WRITE, 0, 0, CREATE_ALWAYS, 0, 0);\r
if (hFile != INVALID_HANDLE_VALUE) {\r
|