News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

Dragging cursor on minimap did not respond correctly

Started by Yona-TYT, October 01, 2022, 10:26:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT


ArchLinux SDL2, r10763
The dragging problem on the minimap is still present when you try to make circular movements with the secondary click.

Please watch the following video:

Yona-TYT

Excuse me for being so insistent. I think this error was overlooked.

As a comparative data I did a test with an earlier version of simutrans and the difference in displacement is noticeable.

Watch Video:

prissi

So what did you do for this error?

The SDL2 version I am testing works fine, the rectangle is a rectangle and the clicking works as intended.

So what is your resolution, what version of SDL2? Windowed or full screen? Wayland or X or framebuffer?

Yona-TYT

I am using arch linx with gnome in wayland
SDL v2.24.1

It happens with the normal window, I still haven't tried full screen or forcing wayland in SDL

Yona-TYT

Forcing SDL on Wayland "SDL_VIDEODRIVER=wayland simutrans" the behavior is the same.

prissi

Still what do you mean with secondary click? Maybe I can reproduce it on Windows SDL2 too, but I need to get better instruction what the secondary click means.

Yona-TYT

Quote from: prissi on October 31, 2022, 06:36:27 AMStill what do you mean with secondary click? Maybe I can reproduce it on Windows SDL2 too, but I need to get better instruction what the secondary click means.
I am referring to the event that scrolls the minimap view without changing the position on the game map.

This event is fired by holding and dragging the right mouse click on the minimap.

Note: Youtube videos seem to be not working well in the forum (check this).

prissi

So you just hold and drag the right mouse button? Then the yellow rectangle should not move and just the map is minimap position is dragged.

Only the left button moves the external view.

Also, I could get a non square rectangle with extreme zoom out (1:11) but not under normal circumstances. Could you just start simutrans with SDL2 and -log -debug 5 until the oak selection screen appears, and just post the result?

Yona-TYT

Quote from: prissi on October 31, 2022, 11:56:24 PMSo you just hold and drag the right mouse button? Then the yellow rectangle should not move and just the map is minimap position is dragged.
Exakt !. 8)


The scroll speed seems to be broken here, as setting the "Scroll Speed" (Display Settings) to a low value has no effect.


Quote from: prissi on October 31, 2022, 11:56:24 PMAlso, I could get a non square rectangle with extreme zoom out (1:11) but not under normal circumstances. Could you just start simutrans with SDL2 and -log -debug 5 until the oak selection screen appears, and just post the result?
until the oak selection screen ? ??? ... Hopefully this log is of some use: debug.zip

prissi


Dwachs

The rectangle in the minimap is distorted if the view is on very rough terrain: there is some code that calculates the the coordinates if visible tile in the four corners of the screen to approximate the current viewport.
Parsley, sage, rosemary, and maggikraut.