diff mde/gui/renderer/SimpleRenderer.d @ 100:0ea4a3e651ae

There is now a position marker for text editing. Changed the way fonts are configured. Actually, not much of the new way exists yet.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 15 Nov 2008 17:39:14 +0000
parents 5de5810e3516
children 42e241e7be3e
line wrap: on
line diff
--- a/mde/gui/renderer/SimpleRenderer.d	Fri Nov 14 12:44:32 2008 +0000
+++ b/mde/gui/renderer/SimpleRenderer.d	Sat Nov 15 17:39:14 2008 +0000
@@ -31,7 +31,7 @@
 class SimpleRenderer : IRenderer
 {
     this () {
-        defaultFont = FontStyle.get("default");
+        defaultFont = FontStyle.getDefault;
     }
     
     alias Border.BTYPE BTYPE;
@@ -135,7 +135,8 @@
         a.font = defaultFont;
         a.content = text;
 	a.colour = Colour (col);
-        return a;
+	a.index = size_t.max;
+	return a;
     }
     
 protected: