diff mde/setup/sdl.d @ 64:cc3763817b8a

Overhauled Options so that it now uses templates and mixins for type-specific internals, and supported types can be adjusted via just one list.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sun, 29 Jun 2008 11:55:55 +0100
parents 66d555da083e
children 108d123238c0
line wrap: on
line diff
--- a/mde/setup/sdl.d	Fri Jun 27 18:35:33 2008 +0100
+++ b/mde/setup/sdl.d	Sun Jun 29 11:55:55 2008 +0100
@@ -158,11 +158,11 @@
 
 void resizeWindow (int w, int h) {
     if (vidOpts.fullscreen) {
-        Options.setInt ("video", "screenW", w);
-        Options.setInt ("video", "screenH", h);
+        vidOpts.set!(int) ("screenW", w);
+        vidOpts.set!(int) ("screenH", h);
     } else {
-        Options.setInt ("video", "windowW", w);
-        Options.setInt ("video", "windowH", h);
+        vidOpts.set!(int) ("windowW", w);
+        vidOpts.set!(int) ("windowH", h);
     }
     
     if (SDL_SetVideoMode (w, h, 32, flags) is null) {