summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index d7979d4..9f697aa 100644
--- a/main.c
+++ b/main.c
@@ -270,6 +270,8 @@ INT WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
WideCharToMultiByte(CP_UTF8, 0, wide_arg, len, argv[i], bufsz - 1, NULL, NULL);
}
LocalFree(wide_argv);
+ SetProcessDPIAware();
+
#else
int main(int argc, char **argv) {
#endif
@@ -511,7 +513,7 @@ int main(int argc, char **argv) {
PROFILE_TIME(fonts_start)
ted_load_fonts(ted);
PROFILE_TIME(fonts_end)
-
+
PROFILE_TIME(create_start)
{
TextBuffer *lbuffer = &ted->line_buffer;