Mercurial > repos > blastem
comparison render_sdl.c @ 490:c8e65962bfed opengl
Enable fullscreen mode in OpenGL renderer
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 27 Oct 2013 21:58:03 -0700 |
parents | e97b80e3bd76 |
children | 39cad98d2789 |
comparison
equal
deleted
inserted
replaced
489:e97b80e3bd76 | 490:c8e65962bfed |
---|---|
215 SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5); | 215 SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5); |
216 SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5); | 216 SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5); |
217 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); | 217 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); |
218 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); | 218 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); |
219 flags = SDL_OPENGL; | 219 flags = SDL_OPENGL; |
220 if (fullscreen) { | |
221 flags |= SDL_FULLSCREEN; | |
222 } | |
220 } else { | 223 } else { |
221 #else | 224 #else |
222 { | 225 { |
223 #endif | 226 #endif |
224 if (fullscreen) { | 227 if (fullscreen) { |