Mercurial > projects > mde
diff mde/sdl.d @ 41:b3a6ca4516b4
The renderer now controls which parts of the window border allow resizing.
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Tue, 13 May 2008 12:02:36 +0100 |
parents | 57d000574d75 |
children | 0fd51d2c6c8a |
line wrap: on
line diff
--- a/mde/sdl.d Thu May 08 16:05:51 2008 +0100 +++ b/mde/sdl.d Tue May 13 12:02:36 2008 +0100 @@ -53,7 +53,7 @@ // Must be called after SDL has been initialised, so cannot be a separate Init function. openJoysticks (); // after SDL init cleanup.addFunc (&cleanupSDL, "cleanupSDL"); - + setupWindow(); } @@ -83,6 +83,7 @@ SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER,1); // Open a window + debug logger.trace ("Opening a window (this can crash if the libraries are messed up)"); if (SDL_SetVideoMode (w, h, 32, flags) is null) { logger.fatal ("Unable to set video mode:"); char* msg = SDL_GetError ();