diff --git a/dlanguilib.visualdproj b/dlanguilib.visualdproj index 6f603064..a3290833 100644 --- a/dlanguilib.visualdproj +++ b/dlanguilib.visualdproj @@ -66,7 +66,7 @@ 0 DebugFocus 0 - USE_SDL USE_OPENGL + USE_OPENGL Unicode 0 0 1 @@ -89,6 +89,7 @@ $(OutDir)\$(ProjectName).lib 1 + 2 @@ -183,6 +184,7 @@ $(OutDir)\$(ProjectName).lib 1 + 1 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 @@ 0 0 - USE_SDL USE_OPENGL + USE_OPENGL Unicode 0 3 0 @@ -89,6 +89,7 @@ $(OutDir)\$(ProjectName).exe 1 + 2 -profile @@ -183,6 +184,7 @@ $(OutDir)\$(ProjectName).exe 1 + 1 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 @@ 0 0 - USE_SDL USE_OPENGL + USE_OPENGL 0 3 0 @@ -89,6 +89,7 @@ $(OutDir)\$(ProjectName).exe 1 + 2 -profile @@ -183,6 +184,7 @@ $(OutDir)\$(ProjectName).exe 1 + 1 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 @@ 0 0 - USE_SDL USE_OPENGL + USE_OPENGL 0 3 0 @@ -89,6 +89,7 @@ $(OutDir)\$(ProjectName).exe 1 + 2 -profile @@ -183,6 +184,7 @@ $(OutDir)\$(ProjectName).exe 1 + 1 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");