mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
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
3 changed files with 2 additions and 7 deletions
|
@ -39,7 +39,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
|
||||
#include <QtCore/QBuffer>
|
||||
#include <QtGui/QImageWriter>
|
||||
#include <QtGui/QColorSpace>
|
||||
|
||||
namespace {
|
||||
|
||||
|
@ -181,10 +180,6 @@ struct PreparedFileThumbnail {
|
|||
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();
|
||||
QBuffer buffer(&result);
|
||||
QImageWriter writer(&buffer, "JPEG");
|
||||
|
|
|
@ -56,7 +56,7 @@ ENV CXXFLAGS $CFLAGS
|
|||
FROM builder AS patches
|
||||
RUN git clone {{ GIT }}/desktop-app/patches.git \
|
||||
&& cd patches \
|
||||
&& git checkout b842feb5f8 \
|
||||
&& git checkout 8edd80d889 \
|
||||
&& rm -rf .git
|
||||
|
||||
FROM builder AS nasm
|
||||
|
|
|
@ -397,7 +397,7 @@ if customRunCommand:
|
|||
stage('patches', """
|
||||
git clone https://github.com/desktop-app/patches.git
|
||||
cd patches
|
||||
git checkout b842feb5f8
|
||||
git checkout 8edd80d889
|
||||
""")
|
||||
|
||||
stage('msys64', """
|
||||
|
|
Loading…
Add table
Reference in a new issue