From e60dfd496847991ca8c93a8f2504685631613d98 Mon Sep 17 00:00:00 2001 From: Mirco Miranda Date: Wed, 10 May 2023 11:43:04 +0000 Subject: [PATCH] pcx: multiple fixes - Fix wrong RGB channel order if image format is other than (A)RGB32 - Write right resolution - Set right resolution on image load - Return false on write error - Save images with depth greater than 24-bits --- autotests/write/bw.pcx | Bin 1649 -> 1649 bytes autotests/write/rgb.pcx | Bin 1825 -> 1825 bytes src/imageformats/pcx.cpp | 21 +++++++++++---------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/autotests/write/bw.pcx b/autotests/write/bw.pcx index 095d70e3ae869e988d161acd70c64d53045f214d..3a7ccc27c36b5b28473cea65fc808a9ead649270 100644 GIT binary patch delta 27 fcmey!^O1+2idm}agNFN01 delta 28 gcmey!^N~k@i`$ud5Iim#r delta 28 gcmZ3;w~$YOi= 24) { writeImage24(img, s, header); + } else { + return false; } return true;