aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLukas Rusak <lorusak@gmail.com>2023-05-04 20:08:39 -0700
committerLukas Rusak <lorusak@gmail.com>2023-05-12 20:43:27 -0700
commit3b99e3a4a13c5b5f169770b1edb2b6e0204cc38e (patch)
tree685c9d953194dd0a938478767aeb8f3c51f62fda /tools
parent812707aa6aef13f0bf14e212e4183c05b897a2f2 (diff)
TexturePacker: combine printf formatting into a single call
Signed-off-by: Lukas Rusak <lorusak@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/native/TexturePacker/src/TexturePacker.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/depends/native/TexturePacker/src/TexturePacker.cpp b/tools/depends/native/TexturePacker/src/TexturePacker.cpp
index 96d2887358..54bc036305 100644
--- a/tools/depends/native/TexturePacker/src/TexturePacker.cpp
+++ b/tools/depends/native/TexturePacker/src/TexturePacker.cpp
@@ -333,12 +333,14 @@ int TexturePacker::createBundle(const std::string& InputDir,
{
for (unsigned int j = 0; j < frames.frameList.size(); j++)
{
- printf(" frame %4i (delay:%4i) ", j, frames.frameList[j].delay);
CXBTFFrame frame = createXBTFFrame(frames.frameList[j].rgbaImage, writer, flags);
frame.SetDuration(frames.frameList[j].delay);
file.GetFrames().push_back(frame);
- printf("%s%c (%d,%d @ %" PRIu64 " bytes)\n", GetFormatString(frame.GetFormat()), frame.HasAlpha() ? ' ' : '*',
- frame.GetWidth(), frame.GetHeight(), frame.GetUnpackedSize());
+ printf(" frame %4i (delay:%4i) %s%c (%d,%d @ %" PRIu64
+ " bytes)\n",
+ j, frames.frameList[j].delay, GetFormatString(frame.GetFormat()),
+ frame.HasAlpha() ? ' ' : '*', frame.GetWidth(), frame.GetHeight(),
+ frame.GetUnpackedSize());
}
}
file.SetLoop(0);