diff options
author | pommicket <pommicket@gmail.com> | 2023-07-20 20:11:16 -0700 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-07-20 20:16:12 -0700 |
commit | 02dd1005fee63a66bd8ed9afa647f373ec554a34 (patch) | |
tree | fc34f611ef33f1f34280e38bc960c3b6ad9f0589 /main.c | |
parent | 6148ea652c3e396a12e739a7d84c1a2e46255485 (diff) |
make ted DPI aware on windows
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |