summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-07-20 20:11:16 -0700
committerpommicket <pommicket@gmail.com>2023-07-20 20:16:12 -0700
commit02dd1005fee63a66bd8ed9afa647f373ec554a34 (patch)
treefc34f611ef33f1f34280e38bc960c3b6ad9f0589 /main.c
parent6148ea652c3e396a12e739a7d84c1a2e46255485 (diff)
make ted DPI aware on windows
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;