Remove force-disabling of Qt's color space support for sent images
Qt had a bug with interpreting PNG gamma, but it seems it's fixed now.
This commit is contained in:
parent
7f969e5102
commit
2cbd2725e5
|
@ -39,7 +39,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
|
|
||||||
#include <QtCore/QBuffer>
|
#include <QtCore/QBuffer>
|
||||||
#include <QtGui/QImageWriter>
|
#include <QtGui/QImageWriter>
|
||||||
#include <QtGui/QColorSpace>
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
@ -181,10 +180,6 @@ struct PreparedFileThumbnail {
|
||||||
return bytes;
|
return bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We have an example of dark .png image that when being sent without
|
|
||||||
// removing its color space is displayed fine on tdesktop, but with
|
|
||||||
// a light gray background on mobile apps.
|
|
||||||
full.setColorSpace(QColorSpace());
|
|
||||||
auto result = QByteArray();
|
auto result = QByteArray();
|
||||||
QBuffer buffer(&result);
|
QBuffer buffer(&result);
|
||||||
QImageWriter writer(&buffer, "JPEG");
|
QImageWriter writer(&buffer, "JPEG");
|
||||||
|
|
|
@ -56,7 +56,7 @@ ENV CXXFLAGS $CFLAGS
|
||||||
FROM builder AS patches
|
FROM builder AS patches
|
||||||
RUN git clone {{ GIT }}/desktop-app/patches.git \
|
RUN git clone {{ GIT }}/desktop-app/patches.git \
|
||||||
&& cd patches \
|
&& cd patches \
|
||||||
&& git checkout b842feb5f8 \
|
&& git checkout 8edd80d889 \
|
||||||
&& rm -rf .git
|
&& rm -rf .git
|
||||||
|
|
||||||
FROM builder AS nasm
|
FROM builder AS nasm
|
||||||
|
|
|
@ -397,7 +397,7 @@ if customRunCommand:
|
||||||
stage('patches', """
|
stage('patches', """
|
||||||
git clone https://github.com/desktop-app/patches.git
|
git clone https://github.com/desktop-app/patches.git
|
||||||
cd patches
|
cd patches
|
||||||
git checkout b842feb5f8
|
git checkout 8edd80d889
|
||||||
""")
|
""")
|
||||||
|
|
||||||
stage('msys64', """
|
stage('msys64', """
|
||||||
|
|
Loading…
Reference in New Issue