mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Restore LIBPNG for png files
Restores the use of libpng for png files as stb does not support writing out 16bit png files.
This commit is contained in:
parent
e9296bc882
commit
7f351ef429
489 changed files with 170208 additions and 108 deletions
|
|
@ -26,7 +26,7 @@
|
|||
#include "math/util/frustum.h"
|
||||
#include "core/stream/fileStream.h"
|
||||
#include "gui/core/guiCanvas.h"
|
||||
#include "gfx/bitmap/imageUtils.h"
|
||||
#include "gfx/bitmap/pngUtils.h"
|
||||
#include "console/engineAPI.h"
|
||||
|
||||
|
||||
|
|
@ -132,7 +132,7 @@ void ScreenShot::capture( GuiCanvas *canvas )
|
|||
|
||||
// Open a PNG stream for the final image
|
||||
DeferredPNGWriter pngWriter;
|
||||
pngWriter.begin(outBuffer->getFormat(), outBuffer->getWidth(), canvasSize.y * mTiles - overlapPixels.y * mTiles * 2, fs);
|
||||
pngWriter.begin(outBuffer->getFormat(), outBuffer->getWidth(), canvasSize.y * mTiles - overlapPixels.y * mTiles * 2, fs, 0);
|
||||
|
||||
//// Render each tile to generate a huge screenshot.
|
||||
for (U32 ty = 0; ty < mTiles; ty++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue