Quote from: prissi on June 26, 2025, 03:26:47 AMWhich version of SDL did you compile with?In Fedora, it should be the "SDL2-devel" package, but in the version I'm using, when I search for it in the package manager, it appears as "sdl2-compat-devel-2.32.56-1.fc43.x86_64". I always compile using the libraries included in the official repositories
Quote from: ceeac on June 26, 2025, 05:36:11 PMThis looks like the Fedora package depends on SDL2 without libdecor support.Is libdecor only for GTK windows? Or is it also used in QT? On the lxqt desktop, decorations work fine in Wayland.
Quote from: ceeac on June 26, 2025, 05:36:11 PMThis looks like the Fedora package depends on SDL2 without libdecor support. Do you have multiple versions of SDL2 installed? (Or maybe wesnoth statically links to the libdecor-enabled version?)
# rpm -qa | grep SDL
SDL_image-1.2.12-39.fc42.x86_64
SDL2_net-2.2.0-7.fc42.x86_64
SDL3-3.2.12-1.fc43.x86_64
SDL2_image-2.8.8-1.fc43.x86_64
mingw32-SDL3-3.2.12-1.fc43.noarch
mingw64-SDL3-3.2.12-1.fc43.noarch
SDL3-3.2.12-1.fc43.i686
SDL2_mixer-2.8.1-1.fc43.x86_64
Those are the ones that are in my system currently.Quote from: Yona-TYT on June 22, 2025, 03:41:38 PMThis issue with the Simutras window has been present for a while. It's related to the move to Wayland on GTK desktopsThis looks like the Fedora package depends on SDL2 without libdecor support. Do you have multiple versions of SDL2 installed? (Or maybe wesnoth statically links to the libdecor-enabled version?)
Quote from: prissi on June 26, 2025, 01:06:55 PM...
So even after rotation, the factory coordinates would be the same. The easiest way to fix, would to load the map into simutrans running in a debugger, change the rotation field in the settings to match the coordinates and save it again. I can do that, if you tell me exactly which map needs to be rotated match what.
Quote from: Yona-TYT on June 25, 2025, 01:20:24 PMHowever, I'm concerned that regular users might have this problem when running Simutrans, most don't even know how to compile their own versions.
koord pos(x,y);
coordinate_transform_t::koord_sq2w(pos);
fabrik_t *fab = fabrik_t::get_fab(pos);
if (!fab) {
So even after rotation, the factory coordinates would be the same. The easiest way to fix, would to load the map into simutrans running in a debugger, change the rotation field in the settings to match the coordinates and save it again. I can do that, if you tell me exactly which map needs to be rotated match what.