diff mde/gui/renderer/SimpleRenderer.d @ 111:1655693702fc

Resolved ticket #4, allowing widgets to reload strings and recalculate sizes mid-run. Removed prefinalize and finalize and added setup as the new second initialization phase, which can be re-run.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 06 Dec 2008 17:41:42 +0000
parents 2a1428ec5344
children b16a534f5302
line wrap: on
line diff
--- a/mde/gui/renderer/SimpleRenderer.d	Fri Dec 05 11:29:39 2008 +0000
+++ b/mde/gui/renderer/SimpleRenderer.d	Sat Dec 06 17:41:42 2008 +0000
@@ -148,10 +148,9 @@
         glRecti (x+2,y+14, x+14,y+2);
     }
     
-    TextAdapter getAdapter (char[] text, int col) {
+    TextAdapter getAdapter (int col) {
         TextAdapter a;
         a.font = defaultFont;
-        a.content = text;
 	a.colour_ = Colour (col);
 	a.index_ = size_t.max;
 	return a;