909
910
911
912
913
914
915
916
917
918
919
920
921
922
|
optionquery[1]=Q_screenWidth;
w=strtol(xrm_get_resource(resourcedb,optionquery,optionquery,2)?:"800",0,10);
optionquery[1]=Q_screenHeight;
h=strtol(xrm_get_resource(resourcedb,optionquery,optionquery,2)?:"600",0,10);
optionquery[1]=Q_screenFlags;
v=xrm_get_resource(resourcedb,optionquery,optionquery,2)?:"";
if(SDL_Init(SDL_INIT_VIDEO|(strchr(v,'z')?SDL_INIT_NOPARACHUTE:0)|SDL_INIT_TIMER)) fatal("Error initializing SDL: %s\n",SDL_GetError());
atexit(SDL_Quit);
i=0;
while(*v) switch(*v++) {
case 'd': i|=SDL_DOUBLEBUF; break;
case 'f': i|=SDL_FULLSCREEN; break;
case 'h': i|=SDL_HWSURFACE; break;
case 'n': i|=SDL_NOFRAME; break;
|
>
>
>
|
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
|
optionquery[1]=Q_screenWidth;
w=strtol(xrm_get_resource(resourcedb,optionquery,optionquery,2)?:"800",0,10);
optionquery[1]=Q_screenHeight;
h=strtol(xrm_get_resource(resourcedb,optionquery,optionquery,2)?:"600",0,10);
optionquery[1]=Q_screenFlags;
v=xrm_get_resource(resourcedb,optionquery,optionquery,2)?:"";
if(SDL_Init(SDL_INIT_VIDEO|(strchr(v,'z')?SDL_INIT_NOPARACHUTE:0)|SDL_INIT_TIMER)) fatal("Error initializing SDL: %s\n",SDL_GetError());
#ifdef CONFIG_EXTRA_SCREEN_INIT
do{ CONFIG_EXTRA_SCREEN_INIT }while(0);
#endif
atexit(SDL_Quit);
i=0;
while(*v) switch(*v++) {
case 'd': i|=SDL_DOUBLEBUF; break;
case 'f': i|=SDL_FULLSCREEN; break;
case 'h': i|=SDL_HWSURFACE; break;
case 'n': i|=SDL_NOFRAME; break;
|