News:

Simutrans Chat Room
Where cool people of Simutrans can meet up.

Inconsistent center of zoom

Started by smu42, February 25, 2010, 11:54:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

smu42


Simutrans Version: 102.2.1
Pak128

Problem: When using the mouse wheel or pageUp/pageDown to zoom, the center of the screen moves a little bit.

Proposal: When zooming, the center of the zoom should be (1) the middle of the window or (2) the mouse cursor.

Maybe this (1) is alread the case and some rounding error occurs.

knightly

Quote from: smu42 on February 25, 2010, 11:54:58 PM
Problem: When using the mouse wheel or pageUp/pageDown to zoom, the center of the screen moves a little bit.

You are really lucky ;), as my latest viewport patch also fixes this problem. When I wrote the viewport patch, the misalignment is far more obvious, as the viewports may have smaller sizes.

smu42

Nice coincidence :)

It works for me, too.