rem: opts->driver = OPTVAL_320_240_GL;
add: if (ScreenHeightActual != 240) { opts->driver = OPTVAL_CUSTOM_GL; } else { opts->driver = OPTVAL_320_240_GL; }
context: GetGlobalOptions (GLOBALOPTS *opts){	if (GfxFlags & TFB_GFXFLAGS_SCALE_BILINEAR) 	{		opts->scaler = OPTVAL_BILINEAR_SCALE;	}	else if (GfxFlags & TFB_GFXFLAGS_SCALE_BIADAPT)	{		opts->scaler = OPTVAL_BIADAPT_SCALE;	}	else if (GfxFlags & TFB_GFXFLAGS_SCALE_BIADAPTADV) 	{		opts->scaler = OPTVAL_BIADV_SCALE;	}	else if (GfxFlags & TFB_GFXFLAGS_SCALE_TRISCAN) 	{		opts->scaler = OPTVAL_TRISCAN_SCALE;	} 	else	{		opts->scaler = OPTVAL_NO_SCALE;	}	opts->subtitles = optSubtitles ? OPTVAL_ENABLED : OPTVAL_DISABLED;	opts->scanlines = (GfxFlags & TFB_GFXFLAGS_SCANLINES) ? 		OPTVAL_ENABLED : OPTVAL_DISABLED;	// opts->music = (optWhichMusic == OPT_3DO) ? OPTVAL_3DO : OPTVAL_PC;	opts->menu = (optWhichMenu == OPT_3DO) ? OPTVAL_3DO : OPTVAL_PC;	opts->text = (optWhichFonts == OPT_3DO) ? OPTVAL_3DO : OPTVAL_PC;	opts->cscan = (optWhichCoarseScan == OPT_3DO) ? OPTVAL_3DO : OPTVAL_PC;	opts->scroll = (optSmoothScroll == OPT_3DO) ? OPTVAL_3DO : OPTVAL_PC;	switch (ScreenColorDepth) 	{	case 16:		opts->depth = OPTVAL_16;		break;	case 24:		opts->depth = OPTVAL_24;		break;	case 32:		opts->depth = OPTVAL_32;		break;	default:		opts->depth = OPTVAL_32+1;		break;	}	/* Warning: This is a filthy lie, as it's assuming that the	 * res must be one of the options. */	switch (ScreenWidthActual)	{	case 320:		if (GraphicsDriver == TFB_GFXDRIVER_SDL_PURE)		{			opts->driver = OPTVAL_320_240_PURE;		}		else		{			opts->driver = OPTVAL_320_240_GL;		}		break;	case 640:		if (GraphicsDriver == TFB_GFXDRIVER_SDL_PURE)		{			opts->driver = OPTVAL_640_480_PURE;		}		else		{			opts->driver = OPTVAL_640_480_GL;		}		break;	case 800:		opts->driver = OPTVAL_800_600_GL;		break;	case 1024:		opts->driver = OPTVAL_1024_768_GL;		break;	}}