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 (argc>1)\r
hGrp = LoadGrp(argv[1]);\r
else\r
- hGrp = LoadGrp("unit\\zerg\\ultra.grp");\r
+ hGrp = LoadGrp("unit\\zerg\\zergling.grp");\r
HDC hDC = GetDC(0);\r
GRPHEADER GrpInfo;\r
if (GetGrpInfo(hGrp,&GrpInfo)==0) {GrpInfo.nFrames=0;GrpInfo.wMaxWidth=0;GrpInfo.wMaxHeight=0;}\r
}*/\r
signed short clrPixel;\r
RECT rect;\r
- for (i=0;i<GrpInfo.nFrames;i++) {\r
- for (j=0;j<8;j++)\r
+ /*for (i=0;i<GrpInfo.nFrames;i++) {\r
+ for (j=0;j<16;j++)\r
{\r
rand_s(&u);\r
rand_s(&v);\r
v = v % 600;\r
DrawGrp(hGrp,hDC,u,v,i,dwPalette,ALPHA_BLEND,0x404040);\r
}\r
- }\r
+ }*/\r
SetFunctionGetPixel((GETPIXELPROC)ReadPixelFromBuffer);\r
SetFunctionSetPixel((SETPIXELPROC)WritePixelToBuffer);\r
for (i=0;i<GrpInfo.nFrames;i++) {\r
v = (BI.nHeight - GrpInfo.wMaxHeight) / 2;\r
for (y = 0; y < BI.nHeight; y++) {\r
for (x = 0; x < BI.nWidth; x++) {\r
- WritePixelToBuffer(&BI, x, y, 0);\r
+ WritePixelToBuffer(&BI, x, y, -1);\r
}\r
}\r
DrawGrp(hGrp,(HDC)&BI,u,v,i,0,USE_INDEX,0);\r
|