Less code is enough to start the OpenGL 3 window fullscreen.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13040 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
ee3fbb849e
commit
9a105ea686
@ -196,12 +196,7 @@ int main (int argc, char* argv[])
|
||||
Fl::use_high_res_GL(true);
|
||||
glutInit(&argc, argv);
|
||||
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | FL_OPENGL3);
|
||||
int W = 400, H = 400;
|
||||
if (fullscreen) {
|
||||
int X,Y;
|
||||
Fl::screen_xywh(X,Y,W,H,0);
|
||||
}
|
||||
glutInitWindowSize(W, H);
|
||||
glutInitWindowSize(400, 400);
|
||||
glutCreateWindow("Triangle Test");
|
||||
if (fullscreen) Fl::first_window()->fullscreen();
|
||||
#ifndef __APPLE__
|
||||
|
Loading…
Reference in New Issue
Block a user