X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fglut%2Fmain.c;fp=src%2Fglut%2Fmain.c;h=638438df40e71160e1a4a07f994a11177127d719;hp=79833d9c23d8c5687efa4a9d29fe1e94db39845a;hb=7e9bdbed1a8cda290cf0ee8af914625f62df2b5e;hpb=dcc815e69d92ecf20b063e38903bcedee7a19f2d diff --git a/src/glut/main.c b/src/glut/main.c index 79833d9..638438d 100644 --- a/src/glut/main.c +++ b/src/glut/main.c @@ -73,7 +73,12 @@ static cgm_quat rot = {0, 0, 0, 1}; int main(int argc, char **argv) { glutInit(&argc, argv); - glutInitWindowSize(1280, 960); + + if(glutGet(GLUT_SCREEN_HEIGHT) <= 1024) { + glutInitWindowSize(640, 480); + } else { + glutInitWindowSize(1280, 960); + } glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE); glutCreateWindow("Mindlapse");