The International Simutrans Forum

 

Author Topic: Inconsistent center of zoom  (Read 1949 times)

0 Members and 1 Guest are viewing this topic.

Offline smu42

  • *
  • Posts: 37
  • Languages: German, English
Inconsistent center of zoom
« on: February 25, 2010, 11:54:58 PM »

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

  • Guest
Re: Inconsistent center of zoom
« Reply #1 on: February 26, 2010, 10:39:39 AM »
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.

Offline smu42

  • *
  • Posts: 37
  • Languages: German, English
Re: Inconsistent center of zoom
« Reply #2 on: February 27, 2010, 07:22:11 PM »
Nice coincidence :)

It works for me, too.

Offline whoami

  • Devotees (Inactive)
  • *
  • Posts: 693
Re: Inconsistent center of zoom
« Reply #3 on: February 27, 2010, 09:07:56 PM »
Further discussed here: Viewport patch