X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=ld42_outofspace;a=blobdiff_plain;f=src%2Fgame.cc;h=9d69c69782bf356c9a436abfa9892eacafa6919c;hp=cf3f62ad448447362b6581905983c98f83310390;hb=d0367d9119f81afd77045481b9e53d5a17b89a73;hpb=6206d87eb7b24c04c5675404bdb13e9ace86f2fe diff --git a/src/game.cc b/src/game.cc index cf3f62a..9d69c69 100644 --- a/src/game.cc +++ b/src/game.cc @@ -22,8 +22,6 @@ bool game_init() glEnable(GL_FRAMEBUFFER_SRGB); glEnable(GL_DEPTH_TEST); glEnable(GL_CULL_FACE); - glEnable(GL_LIGHTING); - glEnable(GL_LIGHT0); active_screen->start(); return true; @@ -43,20 +41,19 @@ void game_draw() void game_reshape(int x, int y) { - active_screen->draw(); + active_screen->reshape(x, y); } void game_keyboard(int key, bool pressed) { if(pressed) { switch(key) { - case 'q': - case 'Q': - if(game_modkeys() & MODKEY_CTRL) { - game_quit(); - return; - } - break; + case 17: + /* for some inexplicable reason freeglut seems to produce key + * 17 for ctrl-q on both X and windows. + */ + game_quit(); + return; default: break;