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




ShadowFlare [Sat, 21 Oct 2006 20:17:36 +0000 (20:17 +0000)]
drawgrp/drawgrp.cpp

index 8a48980..6ddab08 100644 (file)
@@ -68,7 +68,7 @@ int main(int argc, char* argv[])
        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
@@ -88,7 +88,7 @@ int main(int argc, char* argv[])
        signed short clrPixel;\r
        RECT rect;\r
        for (i=0;i<GrpInfo.nFrames;i++) {\r
-               for (j=0;j<8;j++)\r
+               for (j=0;j<16;j++)\r
                {\r
                        rand_s(&u);\r
                        rand_s(&v);\r
@@ -105,7 +105,7 @@ int main(int argc, char* argv[])
                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