summaryrefslogtreecommitdiffstats
path: root/sdl/pyramid.c
diff options
context:
space:
mode:
Diffstat (limited to 'sdl/pyramid.c')
-rw-r--r--sdl/pyramid.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sdl/pyramid.c b/sdl/pyramid.c
index c31531c..dd15225 100644
--- a/sdl/pyramid.c
+++ b/sdl/pyramid.c
@@ -28,6 +28,9 @@ static void resize(int w, int h)
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
+
+ /* this needs to be ran again, glut does it for you I suppose */
+ SDL_SetVideoMode(w, h, 32, SDL_OPENGL | SDL_GL_DOUBLEBUFFER | SDL_RESIZABLE);
}
static void SetupRC()
@@ -123,7 +126,7 @@ void processEvents()
}
case SDL_VIDEORESIZE: { resize(event.resize.w, event.resize.h); break; }
case SDL_QUIT: { printf("status: exiting...\n"); exit(0); break; }
- default:
+ default: break;
}
}
}