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 [Wed, 6 Sep 2006 20:37:07 +0000 (20:37 +0000)]
drawgrp/drawgrp.cpp

index 630fcf1..4de2c4c 100644 (file)
@@ -57,7 +57,7 @@ int main(int argc, char* argv[])
        if (argc>1)\r
                hGrp = LoadGrp(argv[1]);\r
        else\r
-               hGrp = LoadGrp("game\\icons.grp");\r
+               hGrp = LoadGrp("unit\\zerg\\ultra.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
@@ -74,7 +74,7 @@ int main(int argc, char* argv[])
        }*/\r
        COLORREF clrPixel;\r
        RECT rect;\r
-       for (i=0;i<400;i+=1) {\r
+       for (i=13;i<400;i+=17) {\r
                rect.left = rect.top = i;\r
                rect.right = rect.left + BI.nWidth;\r
                rect.bottom = rect.top + BI.nHeight;\r
@@ -91,7 +91,7 @@ int main(int argc, char* argv[])
                }\r
                FillRect(hDC, &rect, (HBRUSH) (COLOR_WINDOW+1));\r
        }\r
-       for (i=0;i<400;i+=1) {\r
+       for (i=4;i<400;i+=17) {\r
                rect.left = rect.top = 400-i;\r
                rect.right = rect.left + BI.nWidth;\r
                rect.bottom = rect.top + BI.nHeight;\r