Commit f095b559 authored by Andrew Eikum's avatar Andrew Eikum
Browse files

winex11.drv: Don't report modes smaller than 800x600 for Titan Souls

Work around a game bug investigated by Rémi.
parent a1cef95c
......@@ -121,6 +121,7 @@ BOOL X11DRV_Settings_AddOneMode(unsigned int width, unsigned int height, unsigne
unsigned int i;
struct x11drv_mode_info *info = &dd_modes[dd_mode_count];
DWORD dwBpp = screen_bpp;
const char *appid;
if (dd_mode_count >= dd_max_modes)
{
ERR("Maximum modes (%d) exceeded\n", dd_max_modes);
......@@ -128,6 +129,15 @@ BOOL X11DRV_Settings_AddOneMode(unsigned int width, unsigned int height, unsigne
}
if (bpp == 0) bpp = dwBpp;
if ((appid = getenv("SteamAppId")) && !strcmp(appid, "297130"))
{
/* Titan Souls renders incorrectly if we report modes smaller than 800x600 */
if (height <= 600 && !(height == 600 && width == 800))
{
return FALSE;
}
}
for(i = 0; i < dd_mode_count; ++i)
{
if(dd_modes[i].width == width &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment