rmtew / incursion-roguelike

The legendary computer game Incursion: Hall of the Goblin King!
https://incursion-roguelike.net/
Other
9 stars 1 forks source link

libtcod 1.7.0 display issues with different resolutions #20

Open rmtew opened 3 months ago

rmtew commented 3 months ago
  1. Start the game (I was running x64/Debug build).
  2. Press alt+enter to go fullscreen.
  3. Observe the screen is clipped as shown.

image

HexDecimal commented 3 months ago

I can't be sure of the cause until I update libtcod, and I need to resolve #12 to do that.

rmtew commented 3 months ago

I had 800x600 for window and full screen it kind of worked. Then Incursion encountered an invalid glyph (-35 IIRC) and I had to reboot to get out of it. I couldn't switch windows. Was running in debugger but couldn't get back to VS.

HexDecimal commented 3 months ago

I primarily suspect that Incursion's libtcod interface code is the cause, but older versions of libtcod were also incredibly buggy. When #22 is done I can immediately look into this. I can use libtcod's newer API and newer C++ standards to make the interface much more safe.

rmtew commented 3 months ago

The last release was with libtcod 1.6.0 but I couldn't find binaries for that. Otherwise we'd probably be able to rerelease at the same level of stability as the last official release, until any migration to new libtcod.

HexDecimal commented 3 months ago

The last major breaking change was when libtcod 1.6.0 switched to SDL2. Things were far more stable after that so a migration to libtcod 1.24.0 will be trivial. Many bugs were fixed since 1.6.0 and 1.7.0.