mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-14 15:33:38 +00:00
@@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
*/
|
||||
#include "tests/test_main.h"
|
||||
|
||||
#include "base/base_file_utilities.h"
|
||||
#include "base/invoke_queued.h"
|
||||
#include "base/integration.h"
|
||||
#include "ui/effects/animations.h"
|
||||
@@ -171,6 +172,10 @@ int main(int argc, char *argv[]) {
|
||||
auto app = App(argc, argv);
|
||||
app.installNativeEventFilter(&app);
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
base::RegisterBundledResources(u"test_text.rcc"_q);
|
||||
#endif // Q_OS_MAC
|
||||
|
||||
const auto ratio = app.devicePixelRatio();
|
||||
const auto useRatio = std::clamp(qCeil(ratio), 1, 3);
|
||||
style::SetDevicePixelRatio(useRatio);
|
||||
|
||||
Reference in New Issue
Block a user