From: ShadowFlare Date: Sat, 7 Oct 2006 07:21:48 +0000 (+0000) Subject: (no commit message) X-Git-Url: https://sfsrealm.hopto.org/projects/gitweb.cgi?a=commitdiff_plain;h=8e36282a2286480dbda718cc5437dc878b87ccfc;p=grpapi.git --- diff --git a/drawgrp/drawgrp.cpp b/drawgrp/drawgrp.cpp index e2f41c8..8a48980 100644 --- a/drawgrp/drawgrp.cpp +++ b/drawgrp/drawgrp.cpp @@ -63,7 +63,7 @@ int main(int argc, char* argv[]) SFileOpenArchive(buffer,3000,0,&hMPQ3); } BufferInfo BI; - LoadPalette("tileset\\Jungle.wpe",dwPalette); + LoadPalette("tileset\\Platform.wpe",dwPalette); HANDLE hGrp, hGrp2; if (argc>1) hGrp = LoadGrp(argv[1]); @@ -74,6 +74,8 @@ int main(int argc, char* argv[]) if (GetGrpInfo(hGrp,&GrpInfo)==0) {GrpInfo.nFrames=0;GrpInfo.wMaxWidth=0;GrpInfo.wMaxHeight=0;} BI.nWidth = GrpInfo.wMaxWidth; BI.nHeight = GrpInfo.wMaxHeight; + //BI.nWidth = 255; + //BI.nHeight = 255; BI.pBuffer = (signed short *)malloc(GrpInfo.nFrames * BI.nWidth * BI.nHeight * sizeof(short)); WORD i,x,y; DWORD j, nGrpSize; @@ -92,30 +94,33 @@ int main(int argc, char* argv[]) rand_s(&v); u = u % 800; v = v % 600; - //DrawGrp(hGrp,hDC,u,v,i,dwPalette,ALPHA_BLEND,0x404040); + DrawGrp(hGrp,hDC,u,v,i,dwPalette,ALPHA_BLEND,0x404040); } } SetFunctionGetPixel((GETPIXELPROC)ReadPixelFromBuffer); SetFunctionSetPixel((SETPIXELPROC)WritePixelToBuffer); for (i=0;i