From 9feac1d458f6c418164c8306f08ebd8e1ec4fa93 Mon Sep 17 00:00:00 2001 From: Ketmar Dark Date: Tue, 5 Apr 2016 02:45:50 +0300 Subject: [PATCH] internal d2d png chunk renamed --- d2dimage.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/d2dimage.d b/d2dimage.d index 283e4e4..504e2f4 100644 --- a/d2dimage.d +++ b/d2dimage.d @@ -239,7 +239,7 @@ public: di.sx = sx; di.sy = sy; di.fixEndian; - auto chk = Chunk.create("d2Di", (cast(ubyte*)&di)[0..di.sizeof]); + auto chk = Chunk.create("dtDi", (cast(ubyte*)&di)[0..di.sizeof]); png.chunks ~= *chk; } // zdoom chunk @@ -297,14 +297,14 @@ private: sx = sy = 0; mimg = ximg; foreach (ref chk; png.chunks) { - if (chk.type[] == "d2Di") { + if (chk.type[] == "dtDi") { // d2d info chunk if (chk.size >= D2DInfoChunk.sizeof) { auto di = *cast(D2DInfoChunk*)chk.payload.ptr; di.fixEndian; sx = di.sx; sy = di.sy; - //conwriteln("found 'd2Di' chunk! sx=", di.sx, "; sy=", di.sy); + //conwriteln("found 'dtDi' chunk! sx=", di.sx, "; sy=", di.sy); } } else if (chk.type[] == "grAb") { // zdoom info chunk @@ -313,7 +313,7 @@ private: di.fixEndian; sx = di.sx; sy = di.sy; - //conwriteln("found 'd2Di' chunk! sx=", di.sx, "; sy=", di.sy); + //conwriteln("found 'dtDi' chunk! sx=", di.sx, "; sy=", di.sy); } } } -- 2.11.4.GIT