First post, by MiniMax
- Rank
- Moderator
I have DOSBox installed on an USB stick in order to easily demonstrate it for friends. Works fine.
I have one problem though. If I overshoot on the fullresolution setting (e.g. set it to 1920x1200, while the system can only handle 1680x1050) games won't run.
So I wondered, would it be possible to have fullresolution=auto setting that would query the graphics driver (output method?) for the current screen resolution?
Edit: Found this SDL example:
http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fListModes
SDL_Rect **modes;
int i;
.
.
.
/* Get available fullscreen/hardware modes */
modes=SDL_ListModes(NULL, SDL_FULLSCREEN|SDL_HWSURFACE);
/* Check if there are any modes available */
if(modes == (SDL_Rect **)0){
printf("No modes available!\n");
exit(-1);
}
/* Check if our resolution is restricted */
if(modes == (SDL_Rect **)-1){
printf("All resolutions available.\n");
}
else{
/* Print valid modes */
printf("Available Modes\n");
for(i=0;modes[i];++i)
printf(" %d x %d\n", modes[i]->w, modes[i]->h);
}
Says there might be a problem with X11-drivers not returning all the possible resolutions.
DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32