Menu

#1923 SDL2 - Video Options pointx1, Game Area: Auto, AR Correction disabled -> distortion

SDL2
closed
None
5
2024-04-09
2015-10-29
No

When you compile with SDL2, and set scaler to 1x, Game Area to Auto and disable Aspect Correction, Exult will be very messed up, distorted.

Discussion

  • colourles

    colourles - 2015-10-30

    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

     
  • Dominik Reichardt

    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"...

     
  • Dominik Reichardt

    • Group: Regression --> SDL2
     
  • Dominik Reichardt

    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

     
  • Dominik Reichardt

    • status: open --> closed