diff --git a/dlangide.visualdproj b/dlangide.visualdproj
index b1500c1..1e49de9 100644
--- a/dlangide.visualdproj
+++ b/dlangide.visualdproj
@@ -66,7 +66,7 @@
0
0
- Unicode USE_SDL
+ 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/src/dlangide.d b/src/dlangide.d
index f7af2d7..b9ec38b 100644
--- a/src/dlangide.d
+++ b/src/dlangide.d
@@ -17,16 +17,19 @@ extern (C) int UIAppMain(string[] args) {
embeddedResourceList.addResources(embedResourcesFromList!("resources.list")());
// you can override default hinting mode here
+ //FontManager.hintingMode = HintingMode.Light;
+ //FontManager.hintingMode = HintingMode.AutoHint;
FontManager.hintingMode = HintingMode.Normal;
+ //FontManager.hintingMode = HintingMode.Disabled;
// you can override antialiasing setting here
FontManager.minAnitialiasedFontSize = 0;
- //version (USE_OPENGL) {
+ version (USE_OPENGL) {
// you can turn on subpixel font rendering (ClearType) here
FontManager.subpixelRenderingMode = SubpixelRenderingMode.None; //
- //} else {
+ } else {
// you can turn on subpixel font rendering (ClearType) here
//FontManager.subpixelRenderingMode = SubpixelRenderingMode.BGR; //SubpixelRenderingMode.None; //
- //}
+ }
// create window
Window window = Platform.instance.createWindow("Dlang IDE", null);
diff --git a/src/dlangide/ui/dsourceedit.d b/src/dlangide/ui/dsourceedit.d
index 8bc8739..4deaecf 100644
--- a/src/dlangide/ui/dsourceedit.d
+++ b/src/dlangide/ui/dsourceedit.d
@@ -99,7 +99,7 @@ class SimpleDSyntaxHighlighter : SyntaxHighlighter {
/// categorize characters in content by token types
void updateHighlight(dstring[] lines, TokenPropString[] props, int changeStartLine, int changeEndLine) {
- Log.d("updateHighlight");
+ //Log.d("updateHighlight");
long ms0 = currentTimeMillis();
_props = props;
changeStartLine = 0;
@@ -189,7 +189,9 @@ class SimpleDSyntaxHighlighter : SyntaxHighlighter {
}
_lines.close();
_props = null;
- Log.d("updateHighlight took ", currentTimeMillis() - ms0, "ms");
+ long elapsed = currentTimeMillis() - ms0;
+ if (elapsed > 20)
+ Log.d("updateHighlight took ", elapsed, "ms");
}
}
diff --git a/workspaces/tetris/src/tetris.d b/workspaces/tetris/src/tetris.d
index 564fc27..58fa71c 100644
--- a/workspaces/tetris/src/tetris.d
+++ b/workspaces/tetris/src/tetris.d
@@ -1,50 +1 @@
-// Written in the D programming language.
-
-/**
-This app is a Tetris demo for DlangUI library.
-
-Synopsis:
-
-----
- dub run dlangui:tetris
-----
-
-Copyright: Vadim Lopatin, 2014
-License: Boost License 1.0
-Authors: Vadim Lopatin, coolreader.org@gmail.com
- */
-module main;
-
-import dlangui.all;
-import model;
-import gui;
-
-/// Required for Windows platform: DMD cannot find WinMain if it's in library
-mixin APP_ENTRY_POINT;
-
-/// entry point for dlangui based application
-extern (C) int UIAppMain(string[] args) {
-
- //auto power2 = delegate(int X) { return X * X; };
- auto power2 = (int X) => X * X;
-
- // embed resources listed in views/resources.list into executable
- embeddedResourceList.addResources(embedResourcesFromList!("resources.list")());
-
- // select translation file - for english language
- Platform.instance.uiLanguage = "en";
- // load theme from file "theme_default.xml"
- Platform.instance.uiTheme = "theme_default";
-
- // create window
- Window window = Platform.instance.createWindow("DLangUI: Tetris game example"d, null, WindowFlag.Modal);
-
- window.mainWidget = new GameWidget();
-
- window.windowIcon = drawableCache.getImage("dtetris-logo1");
-
- window.show();
-
- // run message loop
- return Platform.instance.enterMessageLoop();
-}
+// Written in the D programming language.
/**
This app is a Tetris demo for DlangUI library.
Synopsis:
----
dub run dlangui:tetris
----
Copyright: Vadim Lopatin, 2014
License: Boost License 1.0
Authors: Vadim Lopatin, coolreader.org@gmail.com
*/
module main;
import dlangui.all;
import model;
import gui;
/// Required for Windows platform: DMD cannot find WinMain if it's in library
mixin APP_ENTRY_POINT;
/// entry point for dlangui based application
extern (C) int UIAppMain(string[] args) {
//auto power2 = delegate(int X) { return X * X; };
auto power2 = (int X) => X * X;
// embed resources listed in views/resources.list into executable
embeddedResourceList.addResources(embedResourcesFromList!("resources.list")());
// select translation file - for english language
Platform.instance.uiLanguage = "en";
// load theme from file "theme_default.xml"
Platform.instance.uiTheme = "theme_default";
// create window
Window window = Platform.instance.createWindow("DLangUI: Tetris game example"d, null, WindowFlag.Modal);
window.mainWidget = new GameWidget();
window.windowIcon = drawableCache.getImage("dtetris-logo1");
window.show();
// run message loop
return Platform.instance.enterMessageLoop();
}
\ No newline at end of file