From c564bb67a208283b16b4f1c78f543d7df4b7de36 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Wed, 21 May 2014 11:39:01 +0400 Subject: [PATCH] win32 api backend improvements --- src/dlangui/platforms/windows/winapp.d | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/dlangui/platforms/windows/winapp.d b/src/dlangui/platforms/windows/winapp.d index d77b6058..143fb29e 100644 --- a/src/dlangui/platforms/windows/winapp.d +++ b/src/dlangui/platforms/windows/winapp.d @@ -699,7 +699,11 @@ private __gshared Win32Platform w32platform; int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) { setFileLogger(std.stdio.File("ui.log", "w")); - setLogLevel(LogLevel.Trace); + debug { + setLogLevel(LogLevel.Trace); + } else { + setLogLevel(LogLevel.Info); + } Log.d("myWinMain()"); string basePath = exePath(); Log.i("Current executable: ", exePath()); @@ -720,7 +724,7 @@ int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int /// testing freetype font manager - if (false) { + static if (false) { import dlangui.graphics.ftfonts; import win32.shlobj; FreeTypeFontManager ftfontMan = new FreeTypeFontManager();