From d91816019ee81bf524313682848f4a03c87edf10 Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Mon, 11 Nov 2024 15:58:25 -0800 Subject: [PATCH] Move GREASY IMPORT back intro SPRED --- images/apple/DCGR-TK.PO | Bin 143360 -> 143360 bytes src/inc/dcgrutils.plh | 1 - src/libsrc/apple/dcgrutils.pla | 28 ---------------------------- src/utilsrc/apple/dcgrspred.pla | 29 +++++++++++++++++++++++++++++ 4 files changed, 29 insertions(+), 29 deletions(-) diff --git a/images/apple/DCGR-TK.PO b/images/apple/DCGR-TK.PO index 4e8513e38b7cb33ddd7466681e6bbe22788231a8..fdf59beda4699c1f4be21051b73659ae72ab9d0d 100755 GIT binary patch delta 1644 zcmZY9ZERCj90u_JJ-v6Y?R{zQWy0P!SST>VM3;<6W`qstV5_4SaH0Vs5=S(`5@=+x zJ4ir{0S^V_n_*@e48*Z!X~;6hGCNYNOBpkaj51zKNFd<@hKS;ZPnkxIOMdrx{^y>a zZT)aMZe(@b$m*UaOS2;ta*ZTaMK&oxR#9L#HZ(S^Z+!0Awf<%z${hL9t&CaxfV1yTw`HsnDmEQA-p2d~09rBG}_w!vQb1P)^D zIPwI13;mFQ%SwSmj4R>L9)5()s=k~YjgQ4fV}mQQ)|fNH6|B@{-7zl@jmBalPhYiI zGsDa){1+12*x6p~Y_r(b^>j90Cw*?j*|XUQ`-2@hvQ+VY{@WC2EsX3Q+Qy_K;mKH? zbT>S2xQo>ng%iWeGItgQBl-S);Y-8wSzs)(^g@711K~sQlJtf%@$$@pGQS}OlHrN? z;aa=gA0!q)>>!5E1q#aoc>mVS(E4;(PbC4O#etsU_MZGkl_))>AAy1Jsf#TO?iLb` zCbkofz!>xt6Duqu)(QiV1iL)E=!dFe(dP0A?o!1;JX1rRWQvbva|-FLO_$n7LAGBa1866Av{iMnmDaF_*sp_pvL(3 z$P3t*&@#nU&Ek`of5$wfWeCzOk*hmIvF_#@b^LOj#E0nn&<{WujzcGO!D;A*emD;! za0$jC1)9tFh-b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?Fl*9_MQl5o zU1)@!Bic~+VfY?q?<05WIn;|jfxaL85O%&t{t6_ziqsD8{^9$C#MKX)Hy9#-p}JpKRL>S*7LE^Lgq&<$&6X diff --git a/src/inc/dcgrutils.plh b/src/inc/dcgrutils.plh index 78eac55..49a6ca4 100644 --- a/src/inc/dcgrutils.plh +++ b/src/inc/dcgrutils.plh @@ -6,7 +6,6 @@ import dcgrutils predef dcgrBoldStr(clr, x, y, strptr)#0 predef dcgrFont(font)#0 predef dcgrRect(x, y, w, h)#0 - predef frameRead(filestr, frame)#1 predef spriteRead(filestr)#5 predef spriteWrite(filestr, xorg, yorg, width, height, sprptr)#1 predef screenRead(filestr)#1 diff --git a/src/libsrc/apple/dcgrutils.pla b/src/libsrc/apple/dcgrutils.pla index cec9f31..9e97a9b 100644 --- a/src/libsrc/apple/dcgrutils.pla +++ b/src/libsrc/apple/dcgrutils.pla @@ -124,34 +124,6 @@ export def dcgrRect(x, y, w, h)#0 dcgrHLin(x, x2, v) next end -export def frameRead(filestr, frame)#1 - var sprptr, sprsize - byte refnum, numframes - - sprptr = 0 - refnum = fileio:open(filestr) - if refnum - sprsize = 40 * 40 / 2 - sprptr = heapalloc(sprsize) - if sprptr and fileio:read(refnum, @numframes, 1) - if numframes < frame - heaprelease(sprptr) - sprptr = NULL - fin - fin - if sprptr - if fileio:setmark(refnum, (frame - 1) * sprsize + 1, 0) - heaprelease(sprptr) - sprptr = NULL - elsif fileio:read(refnum, sprptr, sprsize) <> sprsize - heaprelease(sprptr) - sprptr = NULL - fin - fin - fileio:close(refnum) - fin - return sprptr -end export def spriteRead(filestr)#5 var sprptr, sprsize, xorg, yorg byte refnum, width, height diff --git a/src/utilsrc/apple/dcgrspred.pla b/src/utilsrc/apple/dcgrspred.pla index 8b0a9a8..9f25746 100644 --- a/src/utilsrc/apple/dcgrspred.pla +++ b/src/utilsrc/apple/dcgrspred.pla @@ -98,6 +98,35 @@ def greasy2gr(pGreasy)#0 next end +def frameRead(filestr, frame)#1 + var sprptr, sprsize + byte refnum, numframes + + sprptr = 0 + refnum = fileio:open(filestr) + if refnum + sprsize = 40 * 40 / 2 + sprptr = heapalloc(sprsize) + if sprptr and fileio:read(refnum, @numframes, 1) + if numframes < frame + heaprelease(sprptr) + sprptr = NULL + fin + fin + if sprptr + if fileio:setmark(refnum, (frame - 1) * sprsize + 1, 0) + heaprelease(sprptr) + sprptr = NULL + elsif fileio:read(refnum, sprptr, sprsize) <> sprsize + heaprelease(sprptr) + sprptr = NULL + fin + fin + fileio:close(refnum) + fin + return sprptr +end + def importGreasy(frame) var sprptr