mirror of
https://github.com/status-im/dotherside.git
synced 2025-02-11 20:16:47 +00:00
feat: Enable HDPI
This commit is contained in:
parent
407787b72b
commit
85f47b428d
@ -60,6 +60,8 @@ DOS_API void DOS_CALL dos_qcoreapplication_process_events(DosQEventLoopProcessEv
|
||||
/// \brief Force the event loop to spin and process the given events until no more available or timed out
|
||||
DOS_API void DOS_CALL dos_qcoreapplication_process_events_timed(DosQEventLoopProcessEventFlag flags, int ms);
|
||||
|
||||
DOS_API void DOS_CALL dos_qapplication_enable_hdpi(void);
|
||||
|
||||
/// \brief Create a QGuiApplication
|
||||
/// \note The created QGuiApplication should be freed by calling dos_qguiapplication_delete()
|
||||
DOS_API void DOS_CALL dos_qguiapplication_create(void);
|
||||
|
@ -69,6 +69,11 @@ char *dos_qcoreapplication_application_dir_path()
|
||||
return convert_to_cstring(QCoreApplication::applicationDirPath());
|
||||
}
|
||||
|
||||
void dos_qapplication_enable_hdpi()
|
||||
{
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
}
|
||||
|
||||
void dos_qguiapplication_create()
|
||||
{
|
||||
static int argc = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user