Mercurial > projects > mde
diff mde/setup/Screen.d @ 98:49e7cfed4b34
All types of Option have been converted to use ValueContent classes, and their values can be displayed.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Wed, 12 Nov 2008 13:18:51 +0000 |
parents | 30470bc19ca4 |
children | ee209602770d |
line wrap: on
line diff
--- a/mde/setup/Screen.d Mon Nov 10 16:44:44 2008 +0000 +++ b/mde/setup/Screen.d Wed Nov 12 13:18:51 2008 +0000 @@ -82,14 +82,14 @@ int w, h; if (videoOpts.fullscreen()) { flags |= SDL_FULLSCREEN; - w = videoOpts.screenW; - h = videoOpts.screenH; + w = videoOpts.screenW(); + h = videoOpts.screenH(); } else { if (videoOpts.resizable()) flags |= SDL_RESIZABLE; if (videoOpts.noFrame()) flags |= SDL_NOFRAME; - w = videoOpts.windowW; - h = videoOpts.windowH; + w = videoOpts.windowW(); + h = videoOpts.windowH(); } // OpenGL attributes @@ -157,11 +157,11 @@ void resizeEvent (int w, int h) { // Save new size to config if (videoOpts.fullscreen()) { // probably resizeEvent only called when not fullscreen - videoOpts.set!(int) ("screenW", w); - videoOpts.set!(int) ("screenH", h); + videoOpts.screenW = w; + videoOpts.screenH = h; } else { - videoOpts.set!(int) ("windowW", w); - videoOpts.set!(int) ("windowH", h); + videoOpts.windowW = w; + videoOpts.windowH = h; } if (setWindow (w,h))