Skip to content

Commit da04e62

Browse files
committed
fixed 4.21
1 parent 1043b33 commit da04e62

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/UnrealEnginePython/Private/SlateApplication/UEPyFSlateApplication.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,11 @@ static PyObject *py_ue_process_key_char_event(PyObject *cls, PyObject * args)
157157
static PyObject *py_ue_create(PyObject *cls, PyObject * args)
158158
{
159159
#if ENGINE_MINOR_VERSION > 18
160+
#if ENGINE_MINOR_VERSION > 20
161+
FSlateApplication::InitHighDPI(true);
162+
#else
160163
FSlateApplication::InitHighDPI();
164+
#endif
161165
#endif
162166
FSlateApplication::Create();
163167

0 commit comments

Comments
 (0)