From 6d180a7a1b90e5c13e11201543cdb4376598cbb4 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Tue, 18 Mar 2014 21:28:12 +0400 Subject: [PATCH] fix win32 version --- examples/example1/main.d | 2 +- src/dlangui/platforms/windows/winapp.d | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/example1/main.d b/examples/example1/main.d index 8d0713f5..81837325 100644 --- a/examples/example1/main.d +++ b/examples/example1/main.d @@ -41,7 +41,7 @@ extern (C) int UIAppMain(string[] args) { // create window Window window = Platform.instance().createWindow("My Window", null); - static if (false) { + static if (true) { LinearLayout layout = new LinearLayout(); layout.addChild((new TextWidget()).textColor(0x00802000).text("Text widget 0")); layout.addChild((new TextWidget()).textColor(0x40FF4000).text("Text widget")); diff --git a/src/dlangui/platforms/windows/winapp.d b/src/dlangui/platforms/windows/winapp.d index 4741d1cf..4e277a5d 100644 --- a/src/dlangui/platforms/windows/winapp.d +++ b/src/dlangui/platforms/windows/winapp.d @@ -599,6 +599,8 @@ int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int FontManager.instance = fontMan; } + currentTheme = createDefaultTheme(); + version (USE_OPENGL) { import derelict.opengl3.gl3; DerelictGL3.load();