Not sure if I will be able to look at this... but given the information, SDL is probably supplying a hardware surface and Exult is not happy rendering to it. Exult expects to render to a software surface
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's such an edge case that I'd rather wish you could look at more important bugs if you have some time for Exult bugs ;)
It's just curios that this happens only with "auto"...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Then all scalers work as normal, but the x1 scaler doesn't use the given windows size but falls back to 640x480
(Couldn't set video mode (1280, 1024) at 8 bpp depth: Invalid texture
Attempting fallback to 640x480. Good luck...)
Maybe this gives a hint to get further with this bug
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Not sure if I will be able to look at this... but given the information, SDL is probably supplying a hardware surface and Exult is not happy rendering to it. Exult expects to render to a software surface
It's such an edge case that I'd rather wish you could look at more important bugs if you have some time for Exult bugs ;)
It's just curios that this happens only with "auto"...
I wonder if that is about a similar problem and whether it can be applied to Exult https://bitbucket.org/opentyrian/opentyrian/commits/82db9456fafc2d8eab0a4cb5e29bbd0ba8939ec0?at=default
if I comment https://github.com/exult/exult/blob/fb407b7c66f6dfaeafc4bfd74bc2cfd08285c86a/imagewin/imagewin.cc#L603
inter_surface = draw_surface = paletted_surface = display_surface;
Then all scalers work as normal, but the x1 scaler doesn't use the given windows size but falls back to 640x480
(Couldn't set video mode (1280, 1024) at 8 bpp depth: Invalid texture
Attempting fallback to 640x480. Good luck...)
Maybe this gives a hint to get further with this bug
If you force bpp in exult.cfg to 8,16 or 32 it bypasses the whole https://github.com/exult/exult/blob/fb407b7c66f6dfaeafc4bfd74bc2cfd08285c86a/imagewin/imagewin.cc#L566 if (!paletted_surface && !force_bpp and everything is fine.
Somewhere in that if and the ifdef SDL2 a mistake is being made.