projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
glut version: make the loading screen fullscreen if demo is going to run fullscreen
[dosdemo]
/
src
/
glut
/
main.c
diff --git
a/src/glut/main.c
b/src/glut/main.c
index
abe25cc
..
824837e
100644
(file)
--- a/
src/glut/main.c
+++ b/
src/glut/main.c
@@
-118,21
+118,26
@@
int main(int argc, char **argv)
wgl_swap_interval_ext = wglGetProcAddress("wglSwapIntervalEXT");
#endif
wgl_swap_interval_ext = wglGetProcAddress("wglSwapIntervalEXT");
#endif
- reshape(glutGet(GLUT_WINDOW_WIDTH), glutGet(GLUT_WINDOW_HEIGHT));
-
if(au_init() == -1) {
return 1;
}
time_msec = 0;
if(au_init() == -1) {
return 1;
}
time_msec = 0;
- if(demo_init(argc, argv) == -1) {
+ if(demo_init1(argc, argv) == -1) {
return 1;
}
return 1;
}
- atexit(demo_cleanup);
if(opt.fullscreen) {
set_fullscreen(opt.fullscreen);
if(opt.fullscreen) {
set_fullscreen(opt.fullscreen);
+ reshape(glutGet(GLUT_SCREEN_WIDTH), glutGet(GLUT_SCREEN_HEIGHT));
+ } else {
+ reshape(glutGet(GLUT_WINDOW_WIDTH), glutGet(GLUT_WINDOW_HEIGHT));
}
}
+ if(demo_init2() == -1) {
+ return 1;
+ }
+ atexit(demo_cleanup);
+
reset_timer();
glutMainLoop();
reset_timer();
glutMainLoop();