From b6a991d3e65d150669b3a90f28e15b028ef94487 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin <buggins@fromru.com> Date: Wed, 7 Jan 2015 18:22:59 +0300 Subject: [PATCH] fix win32 build properties --- dlanguilib.visualdproj | 4 +++- dub.json | 2 +- examples/example1/example1.visualdproj | 4 +++- examples/helloworld/helloworld.visualdproj | 4 +++- examples/tetris/tetris.visualdproj | 4 +++- src/dlangui/platforms/windows/winapp.d | 4 +++- 6 files changed, 16 insertions(+), 6 deletions(-) diff --git a/dlanguilib.visualdproj b/dlanguilib.visualdproj index 6f603064..a3290833 100644 --- a/dlanguilib.visualdproj +++ b/dlanguilib.visualdproj @@ -66,7 +66,7 @@ <debuglevel>0</debuglevel> <debugids>DebugFocus</debugids> <versionlevel>0</versionlevel> - <versionids>USE_SDL USE_OPENGL</versionids> + <versionids>USE_OPENGL Unicode</versionids> <dump_source>0</dump_source> <mapverbosity>0</mapverbosity> <createImplib>1</createImplib> @@ -89,6 +89,7 @@ <resfile /> <exefile>$(OutDir)\$(ProjectName).lib</exefile> <useStdLibPath>1</useStdLibPath> + <cRuntime>2</cRuntime> <additionalOptions /> <preBuildCommand /> <postBuildCommand /> @@ -183,6 +184,7 @@ <resfile /> <exefile>$(OutDir)\$(ProjectName).lib</exefile> <useStdLibPath>1</useStdLibPath> + <cRuntime>1</cRuntime> <additionalOptions /> <preBuildCommand /> <postBuildCommand /> diff --git a/dub.json b/dub.json index 8fe12fc0..f7c176c0 100644 --- a/dub.json +++ b/dub.json @@ -21,7 +21,7 @@ "targetType": "staticLibrary", "versions-posix": ["USE_SDL", "USE_OPENGL"], - "versions-windows": ["USE_OPENGL"], + "versions-windows": ["USE_OPENGL", "Unicode"], "copyFiles": ["res"], diff --git a/examples/example1/example1.visualdproj b/examples/example1/example1.visualdproj index 4d266fe4..a7d67fa0 100644 --- a/examples/example1/example1.visualdproj +++ b/examples/example1/example1.visualdproj @@ -66,7 +66,7 @@ <debuglevel>0</debuglevel> <debugids /> <versionlevel>0</versionlevel> - <versionids>USE_SDL USE_OPENGL</versionids> + <versionids>USE_OPENGL Unicode</versionids> <dump_source>0</dump_source> <mapverbosity>3</mapverbosity> <createImplib>0</createImplib> @@ -89,6 +89,7 @@ <resfile /> <exefile>$(OutDir)\$(ProjectName).exe</exefile> <useStdLibPath>1</useStdLibPath> + <cRuntime>2</cRuntime> <additionalOptions>-profile</additionalOptions> <preBuildCommand /> <postBuildCommand /> @@ -183,6 +184,7 @@ <resfile /> <exefile>$(OutDir)\$(ProjectName).exe</exefile> <useStdLibPath>1</useStdLibPath> + <cRuntime>1</cRuntime> <additionalOptions /> <preBuildCommand /> <postBuildCommand /> diff --git a/examples/helloworld/helloworld.visualdproj b/examples/helloworld/helloworld.visualdproj index f42555ad..3b8dcc69 100644 --- a/examples/helloworld/helloworld.visualdproj +++ b/examples/helloworld/helloworld.visualdproj @@ -66,7 +66,7 @@ <debuglevel>0</debuglevel> <debugids /> <versionlevel>0</versionlevel> - <versionids>USE_SDL USE_OPENGL</versionids> + <versionids>USE_OPENGL</versionids> <dump_source>0</dump_source> <mapverbosity>3</mapverbosity> <createImplib>0</createImplib> @@ -89,6 +89,7 @@ <resfile /> <exefile>$(OutDir)\$(ProjectName).exe</exefile> <useStdLibPath>1</useStdLibPath> + <cRuntime>2</cRuntime> <additionalOptions>-profile</additionalOptions> <preBuildCommand /> <postBuildCommand /> @@ -183,6 +184,7 @@ <resfile /> <exefile>$(OutDir)\$(ProjectName).exe</exefile> <useStdLibPath>1</useStdLibPath> + <cRuntime>1</cRuntime> <additionalOptions /> <preBuildCommand /> <postBuildCommand /> diff --git a/examples/tetris/tetris.visualdproj b/examples/tetris/tetris.visualdproj index 3b5addfc..0eb9d4a0 100644 --- a/examples/tetris/tetris.visualdproj +++ b/examples/tetris/tetris.visualdproj @@ -66,7 +66,7 @@ <debuglevel>0</debuglevel> <debugids /> <versionlevel>0</versionlevel> - <versionids>USE_SDL USE_OPENGL</versionids> + <versionids>USE_OPENGL</versionids> <dump_source>0</dump_source> <mapverbosity>3</mapverbosity> <createImplib>0</createImplib> @@ -89,6 +89,7 @@ <resfile /> <exefile>$(OutDir)\$(ProjectName).exe</exefile> <useStdLibPath>1</useStdLibPath> + <cRuntime>2</cRuntime> <additionalOptions>-profile</additionalOptions> <preBuildCommand /> <postBuildCommand /> @@ -183,6 +184,7 @@ <resfile /> <exefile>$(OutDir)\$(ProjectName).exe</exefile> <useStdLibPath>1</useStdLibPath> + <cRuntime>1</cRuntime> <additionalOptions /> <preBuildCommand /> <postBuildCommand /> diff --git a/src/dlangui/platforms/windows/winapp.d b/src/dlangui/platforms/windows/winapp.d index dc069afe..023a0423 100644 --- a/src/dlangui/platforms/windows/winapp.d +++ b/src/dlangui/platforms/windows/winapp.d @@ -335,8 +335,10 @@ class Win32Window : Window { override @property void windowCaption(dstring caption) { _caption = caption; - if (_hwnd) + if (_hwnd) { + Log.d("windowCaption ", caption); SetWindowTextW(_hwnd, toUTF16z(_caption)); + } } void onCreate() { Log.d("Window onCreate");