Map Zoom-in

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
User avatar
Posts: 6
Joined: 20 May 2007 14:39
Location: Bucharest, Romania

Map Zoom-in

Post by Napoleon9th »

Hi. Since my screen resolution is large enough, i am playing with 2x UI and 2x font size. However, there's one area where i still have a bit of a struggle, and that's the map window.

From what i see in the code (line 701), the zoom only goes outwards and changing it would not be quite as easy as i had hoped:

Code: Select all

void SmallMapWindow::SetZoomLevel(ZoomLevelChange change, const Point *zoom_pt) 
	static const int zoomlevels[] = {1, 2, 4, 6, 8}; // Available zoom levels. Bigger number means more zoom-out (further away).
For now i'll just use an external program (Paint or Magnifier), but i wonder: would this be useful enough to make it into a suggested/requested feature?

Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 11 guests