mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
Telegram: bump version
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 6c602a7f2dcce50a8ac9db790e22a85158a2d23c Mon Sep 17 00:00:00 2001
|
||||
From 9b4f5aa546148062c75e29f82251eb34ab778361 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Mon, 24 Jun 2019 22:45:12 +1000
|
||||
Subject: Add mediakit support
|
||||
@@ -1,6 +1,6 @@
|
||||
From 1088e1c28d6ee28fc77e772fb5b555f1df199f3f Mon Sep 17 00:00:00 2001
|
||||
From 4ac3bdd0d3e21e77669b793df650c4ffe9054772 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Tue, 25 Jun 2019 18:41:38 +1000
|
||||
Date: Fri, 5 Jul 2019 20:52:58 +1000
|
||||
Subject: Add Haiku support
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ index 786dc49..b1ed887 100644
|
||||
#include "base/flags.h"
|
||||
|
||||
diff --git a/Telegram/SourceFiles/base/flat_map_tests.cpp b/Telegram/SourceFiles/base/flat_map_tests.cpp
|
||||
index 7dad013..1cb7036 100644
|
||||
index e1372c4..facee18 100644
|
||||
--- a/Telegram/SourceFiles/base/flat_map_tests.cpp
|
||||
+++ b/Telegram/SourceFiles/base/flat_map_tests.cpp
|
||||
@@ -5,7 +5,11 @@ the official desktop application for the Telegram messaging service.
|
||||
@@ -185,7 +185,7 @@ index 5d550c5..f676909 100644
|
||||
|
||||
} // namespace Core
|
||||
diff --git a/Telegram/SourceFiles/core/update_checker.cpp b/Telegram/SourceFiles/core/update_checker.cpp
|
||||
index 6916e0b..8fdcb39 100644
|
||||
index fe025f0..c04f6eb 100644
|
||||
--- a/Telegram/SourceFiles/core/update_checker.cpp
|
||||
+++ b/Telegram/SourceFiles/core/update_checker.cpp
|
||||
@@ -501,6 +501,8 @@ bool ParseCommonMap(
|
||||
@@ -2091,10 +2091,10 @@ index 692f4b4..a40f830 100644
|
||||
#include "platform/win/notifications_manager_win.h"
|
||||
#endif // Q_OS_MAC || Q_OS_LINUX || Q_OS_WIN
|
||||
diff --git a/Telegram/SourceFiles/platform/platform_specific.h b/Telegram/SourceFiles/platform/platform_specific.h
|
||||
index 5700cc9..ad1206b 100644
|
||||
index 330ba48..d58b688 100644
|
||||
--- a/Telegram/SourceFiles/platform/platform_specific.h
|
||||
+++ b/Telegram/SourceFiles/platform/platform_specific.h
|
||||
@@ -57,6 +57,8 @@ void finish();
|
||||
@@ -60,6 +60,8 @@ void finish();
|
||||
#include "platform/mac/specific_mac.h"
|
||||
#elif defined Q_OS_LINUX // Q_OS_MAC
|
||||
#include "platform/linux/specific_linux.h"
|
||||
@@ -2210,6 +2210,21 @@ index 4d522a9..1ca7dd0 100644
|
||||
return "tests_storage";
|
||||
#endif // Q_OS_WIN
|
||||
}();
|
||||
diff --git a/Telegram/SourceFiles/ui/style/style_core_font.cpp b/Telegram/SourceFiles/ui/style/style_core_font.cpp
|
||||
index 11655ab..ed6db17 100644
|
||||
--- a/Telegram/SourceFiles/ui/style/style_core_font.cpp
|
||||
+++ b/Telegram/SourceFiles/ui/style/style_core_font.cpp
|
||||
@@ -59,8 +59,8 @@ FontData::FontData(int size, uint32 flags, int family, Font *other)
|
||||
f.setPixelSize(size);
|
||||
if (_flags & FontBold) {
|
||||
f.setBold(true);
|
||||
- //} else if (fontFamilies[family] == "Open Sans Semibold") {
|
||||
- // f.setWeight(QFont::DemiBold);
|
||||
+ } else if (fontFamilies[family] == "Open Sans Semibold") {
|
||||
+ f.setWeight(QFont::DemiBold);
|
||||
}
|
||||
f.setItalic(_flags & FontItalic);
|
||||
f.setUnderline(_flags & FontUnderline);
|
||||
diff --git a/Telegram/ThirdParty/minizip/ioapi.c b/Telegram/ThirdParty/minizip/ioapi.c
|
||||
index 7f5c191..649255c 100644
|
||||
--- a/Telegram/ThirdParty/minizip/ioapi.c
|
||||
@@ -2224,7 +2239,7 @@ index 7f5c191..649255c 100644
|
||||
#define FOPEN_FUNC(filename, mode) fopen(filename, mode)
|
||||
#define FTELLO_FUNC(stream) ftello(stream)
|
||||
diff --git a/Telegram/gyp/Telegram.gyp b/Telegram/gyp/Telegram.gyp
|
||||
index 2333bca..ba2675b 100644
|
||||
index 7fbc349..c09d5a9 100644
|
||||
--- a/Telegram/gyp/Telegram.gyp
|
||||
+++ b/Telegram/gyp/Telegram.gyp
|
||||
@@ -61,6 +61,7 @@
|
||||
@@ -2235,7 +2250,7 @@ index 2333bca..ba2675b 100644
|
||||
'openssl.gypi',
|
||||
'qt.gypi',
|
||||
'qt_moc.gypi',
|
||||
@@ -96,7 +97,7 @@
|
||||
@@ -97,7 +98,7 @@
|
||||
'<(src_loc)',
|
||||
'<(SHARED_INTERMEDIATE_DIR)',
|
||||
'<(emoji_suggestions_loc)',
|
||||
@@ -2333,18 +2348,18 @@ index f73aabd..07c6b35 100644
|
||||
'<(submodules_loc)/variant/include',
|
||||
'<(submodules_loc)/crl/src',
|
||||
diff --git a/Telegram/gyp/lib_lottie.gyp b/Telegram/gyp/lib_lottie.gyp
|
||||
index 6ca841f..f797144 100644
|
||||
index ada149e..b96bd98 100644
|
||||
--- a/Telegram/gyp/lib_lottie.gyp
|
||||
+++ b/Telegram/gyp/lib_lottie.gyp
|
||||
@@ -43,7 +43,7 @@
|
||||
@@ -46,7 +46,7 @@
|
||||
'include_dirs': [
|
||||
'<(src_loc)',
|
||||
'<(SHARED_INTERMEDIATE_DIR)',
|
||||
- '<(libs_loc)/range-v3/include',
|
||||
+ '<(submodules_loc)/range/include',
|
||||
'<(libs_loc)/zlib',
|
||||
'<(lottie_loc)',
|
||||
'<(lottie_loc)/bodymovin',
|
||||
'<(libs_loc)/ffmpeg',
|
||||
'<(rlottie_loc)',
|
||||
diff --git a/Telegram/gyp/lib_storage.gyp b/Telegram/gyp/lib_storage.gyp
|
||||
index d72f4b5..e8740b9 100644
|
||||
--- a/Telegram/gyp/lib_storage.gyp
|
||||
@@ -2664,10 +2679,10 @@ index d9147d6..16c9d3f 100644
|
||||
'variables': {
|
||||
'qrc_files': [
|
||||
diff --git a/Telegram/gyp/telegram_sources.txt b/Telegram/gyp/telegram_sources.txt
|
||||
index a6c82cb..33be044 100644
|
||||
index 8e92e72..78b8477 100644
|
||||
--- a/Telegram/gyp/telegram_sources.txt
|
||||
+++ b/Telegram/gyp/telegram_sources.txt
|
||||
@@ -588,6 +588,20 @@
|
||||
@@ -587,6 +587,20 @@
|
||||
<(src_loc)/platform/linux/notifications_manager_linux.h
|
||||
<(src_loc)/platform/linux/specific_linux.cpp
|
||||
<(src_loc)/platform/linux/specific_linux.h
|
||||
@@ -2710,27 +2725,134 @@ index bd46332..d85a403 100644
|
||||
2.21.0
|
||||
|
||||
|
||||
From 4e3352f235a57fdbca3c807de4ce92af9fbdc5c9 Mon Sep 17 00:00:00 2001
|
||||
From e98a6bd4bb76fb5b887f6ddff825449d496b434f Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Tue, 25 Jun 2019 23:15:28 +1000
|
||||
Subject: Fix for bold font
|
||||
Date: Sat, 6 Jul 2019 22:26:25 +1000
|
||||
Subject: Disable static Qt for Haiku
|
||||
|
||||
|
||||
diff --git a/Telegram/SourceFiles/ui/style/style_core_font.cpp b/Telegram/SourceFiles/ui/style/style_core_font.cpp
|
||||
index 060b0ab..5ed9f6f 100644
|
||||
--- a/Telegram/SourceFiles/ui/style/style_core_font.cpp
|
||||
+++ b/Telegram/SourceFiles/ui/style/style_core_font.cpp
|
||||
@@ -59,8 +59,8 @@ FontData::FontData(int size, uint32 flags, int family, Font *other)
|
||||
f.setPixelSize(size);
|
||||
if (_flags & FontBold) {
|
||||
f.setBold(true);
|
||||
- //} else if (fontFamilies[family] == "Open Sans Semibold") {
|
||||
- // f.setWeight(QFont::DemiBold);
|
||||
+ } else if (fontFamilies[family] == "Open Sans Semibold") {
|
||||
+ f.setWeight(QFont::DemiBold);
|
||||
}
|
||||
f.setItalic(_flags & FontItalic);
|
||||
f.setUnderline(_flags & FontUnderline);
|
||||
diff --git a/Telegram/gyp/lib_rlottie.gyp b/Telegram/gyp/lib_rlottie.gyp
|
||||
index 4d3a7ab..eae76f9 100644
|
||||
--- a/Telegram/gyp/lib_rlottie.gyp
|
||||
+++ b/Telegram/gyp/lib_rlottie.gyp
|
||||
@@ -110,7 +110,7 @@
|
||||
'<(rlottie_src)/vector/vstackallocator.h',
|
||||
'<(rlottie_src)/vector/vtaskqueue.h',
|
||||
],
|
||||
- 'conditions': [[ 'not build_win', {
|
||||
+ 'conditions': [[ 'not build_win and not build_haiku', {
|
||||
'defines': [
|
||||
'RLOTTIE_WITH_STATIC_QT',
|
||||
]
|
||||
--
|
||||
2.21.0
|
||||
|
||||
|
||||
From 47d47c353658f84b5b9c0a4e5b5540d327755173 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Sat, 6 Jul 2019 22:27:19 +1000
|
||||
Subject: Add UseMainQueueGeneric function for Haiku backend
|
||||
|
||||
|
||||
diff --git a/Telegram/SourceFiles/platform/haiku/specific_haiku.h b/Telegram/SourceFiles/platform/haiku/specific_haiku.h
|
||||
index 6788e70..3995ab2 100644
|
||||
--- a/Telegram/SourceFiles/platform/haiku/specific_haiku.h
|
||||
+++ b/Telegram/SourceFiles/platform/haiku/specific_haiku.h
|
||||
@@ -45,6 +45,10 @@ inline std::optional<crl::time> LastUserInputTime() {
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
+inline constexpr bool UseMainQueueGeneric() {
|
||||
+ return true;
|
||||
+}
|
||||
+
|
||||
} // namespace Platform
|
||||
|
||||
inline QString psServerPrefix() {
|
||||
--
|
||||
2.21.0
|
||||
|
||||
|
||||
From 29943f5a358dd30a074c9bf0b979f6025a3922da Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Sat, 6 Jul 2019 22:27:58 +1000
|
||||
Subject: Fixes for Qt 5.13
|
||||
|
||||
|
||||
diff --git a/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp b/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp
|
||||
index 5d0e509..df3e17c 100644
|
||||
--- a/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp
|
||||
+++ b/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp
|
||||
@@ -355,64 +355,14 @@ QImage CreateFrameStorage(QSize size) {
|
||||
}
|
||||
|
||||
void UnPremultiply(QImage &to, const QImage &from) {
|
||||
- // This creates QImage::Format_ARGB32_Premultiplied, but we use it
|
||||
- // as an image in QImage::Format_ARGB32 format.
|
||||
- if (!GoodStorageForFrame(to, from.size())) {
|
||||
- to = CreateFrameStorage(from.size());
|
||||
- }
|
||||
-
|
||||
- const auto layout = &qPixelLayouts[QImage::Format_ARGB32];
|
||||
- const auto convert = layout->convertFromARGB32PM;
|
||||
- const auto fromPerLine = from.bytesPerLine();
|
||||
- const auto toPerLine = to.bytesPerLine();
|
||||
- const auto width = from.width();
|
||||
- if (fromPerLine != width * 4 || toPerLine != width * 4) {
|
||||
- auto fromBytes = from.bits();
|
||||
- auto toBytes = to.bits();
|
||||
- for (auto i = 0; i != to.height(); ++i) {
|
||||
- convert(
|
||||
- reinterpret_cast<uint*>(toBytes),
|
||||
- reinterpret_cast<const uint*>(fromBytes),
|
||||
- width,
|
||||
- layout,
|
||||
- nullptr);
|
||||
- fromBytes += fromPerLine;
|
||||
- toBytes += toPerLine;
|
||||
- }
|
||||
- } else {
|
||||
- convert(
|
||||
- reinterpret_cast<uint*>(to.bits()),
|
||||
- reinterpret_cast<const uint*>(from.bits()),
|
||||
- from.width() * from.height(),
|
||||
- layout,
|
||||
- nullptr);
|
||||
- }
|
||||
+ to = from.convertToFormat(QImage::Format_ARGB32);
|
||||
}
|
||||
|
||||
void PremultiplyInplace(QImage &image) {
|
||||
- const auto layout = &qPixelLayouts[QImage::Format_ARGB32];
|
||||
- const auto convert = layout->convertToARGB32PM;
|
||||
- const auto perLine = image.bytesPerLine();
|
||||
- const auto width = image.width();
|
||||
- if (perLine != width * 4) {
|
||||
- auto bytes = image.bits();
|
||||
- for (auto i = 0; i != image.height(); ++i) {
|
||||
- convert(
|
||||
- reinterpret_cast<uint*>(bytes),
|
||||
- reinterpret_cast<const uint*>(bytes),
|
||||
- width,
|
||||
- layout,
|
||||
- nullptr);
|
||||
- bytes += perLine;
|
||||
- }
|
||||
- } else {
|
||||
- convert(
|
||||
- reinterpret_cast<uint*>(image.bits()),
|
||||
- reinterpret_cast<const uint*>(image.bits()),
|
||||
- image.width() * image.height(),
|
||||
- layout,
|
||||
- nullptr);
|
||||
- }
|
||||
+ QImage temp(image.size(), QImage::Format_ARGB32);
|
||||
+ if (image.sizeInBytes() == temp.sizeInBytes())
|
||||
+ memcpy(temp.bits(), image.bits(), image.sizeInBytes());
|
||||
+ image = temp.convertToFormat(QImage::Format_ARGB32_Premultiplied);
|
||||
}
|
||||
|
||||
} // namespace FFmpeg
|
||||
--
|
||||
2.21.0
|
||||
|
||||
Reference in New Issue
Block a user