diff mde/mde.d @ 102:ba035eba07b4

Compilation fixes for windows and unittest code.
author Cyborg16@cyborg64-win.lan
date Sat, 22 Nov 2008 20:59:36 +0000
parents 49e7cfed4b34
children 42e241e7be3e
line wrap: on
line diff
--- a/mde/mde.d	Sun Nov 16 17:03:47 2008 +0000
+++ b/mde/mde.d	Sat Nov 22 20:59:36 2008 +0000
@@ -1,4 +1,4 @@
-/* LICENSE BLOCK
+/* LICENSE BLOCK
 Part of mde: a Modular D game-oriented Engine
 Copyright © 2007-2008 Diggory Hardy
 
@@ -43,7 +43,7 @@
     this () {
         msg = "Welcome to mde.\nThis executable is only for testing, and\nas such doesn't do anything interesting.";
         debug msg ~= "\nRunning in debug mode.";
-        font = FontStyle.get("default");// get the default or fallback font
+        font = FontStyle.getDefault;	// get the default or fallback font
     }
     void sizeEvent (int,int) {};        // Don't care what the size is
     void draw () {
@@ -81,10 +81,11 @@
     mainSchedule.add (mainSchedule.getNewID, &mde.events.pollEvents).frame = true;
     //END Main loop setup
     
+	double pollInterval = miscOpts.pollInterval();
     while (run) {
         mainSchedule.execute (Clock.now());
         
-        Thread.sleep (miscOpts.pollInterval);	// sleep this many seconds
+        Thread.sleep (pollInterval);	// sleep this many seconds
     }
     
     return 0;		// cleanup handled by init's DTOR