bugFreeciv - Bugs: bug #17760, Zoom

Show feedback again

bug #17760: Zoom

Submitted by:  Marko Lindqvist <cazfi>
Submitted on:  Fri Feb 18 16:55:16 2011  
Category: clientSeverity: 1 - Wish
Priority: 5 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: Operating System: None
Planned Release: Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Wed Jan 20 18:51:12 2016, comment #5:

gtk3-client has some experimental zoom-support in S2_6, but too buggy for prime time.

Marko Lindqvist <cazfi>
Project Administrator
Fri Dec 9 09:22:11 2011, comment #4:

I found GEOC, GEOCANVAS and CRCANVAS. Retained mode 2D drawing libraries for geographic or general purpose rendering.


Only problem (maybe) are Python wrappers, but I don't know if these are necessaries.

I read on stackoverflow these questions:

1. displaying tiled map in Gtk+ app (http://stackoverflow.com/questions/3622999/displaying-tiled-map-in-gtk-app)

2. What is the most performant way to implement zoom to a cairo-drawn canvas? (http://stackoverflow.com/questions/6049208/what-is-the-most-performant-way-to-implement-zoom-to-a-cairo-drawn-canvas).

3. Transforming verticies with center point and scale factor? (http://stackoverflow.com/questions/3588848/transforming-verticies-with-center-point-and-scale-factor)

4. scale surface without blurring it (http://stackoverflow.com/questions/6743610/scale-surface-without-blurring-it)

I hope that these links are useful.

J. M. Gorbach <gorb>
Fri Aug 5 07:51:50 2011, comment #3:

Shouldn't be too hard to implement to gtk-clients once they use cairo (actually, we already have scaling functionality for city maps in old drawing code, but I don't think it makes sense to extend that to mapview zoom at this point). Probably too much work to make it to 2.4, though.

Marko Lindqvist <cazfi>
Project Administrator
Mon Jun 6 21:27:38 2011, comment #2:

Historical note: there was apparently a prototype zooming implementation (that depended on the old Cairo patch). Dunno if anything can be rescued from that. RT#16592 (circa 2006).

Jacob Nevins <jtn>
Project Administrator
Fri Feb 18 22:42:08 2011, comment #1:

I assume we're talking about zooming the main map area here? Presumably in some quick and easy way such as Ctrl+mousewheel, rather than having to go through menus every time you want to change zoom level.

I doubt our community has the energy to create multiple hand-drawn tilesets at different zoom levels, so I guess we'll have to put up with jaggies and such ugliness at non-default zoom levels. (Sid Meier's Alpha Centauri allows something like this with pixel-based tilesets.)

I can understand the desire for this. I use the zoom facility provided by my window manager (Compiz' Enhanced Zoom Desktop) for this sort of thing all the time (not just in Freeciv).

Jacob Nevins <jtn>
Project Administrator
Fri Feb 18 16:55:16 2011, original submission:

In discussion with Scenario League (http://forums.civfanatics.com/showthread.php?t=412202) Harry Tuttle (name to be used in credits to be confirmed) says that freeciv needs zoom functionality.

Implementing this in client common code would mean that all clients would get the feature. However, using optimized zooming functionality of widget-sets would be so much better performance -wise that I vote for client-specific implementation.

Qt has zooming support which would make this quite natural feature in Qt-client once we get one. I don't know for sure, but it's probably quite easy to implement also for gtk-client once we've switched to drawing code that uses cairo. So our gtk3 migration plays a role here.

As request is about supporting scenario creation, I don't think it would satisfy requestor if we had Qt-client that has zoom but no editor and gtk-client that has editor but no zoom.

Marko Lindqvist <cazfi>
Project Administrator


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by gorb (Posted a comment)
  • -unavailable- added by jtn (Posted a comment)
  • -unavailable- added by cazfi (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed Jan 30 01:28:06 2013cazfiStatusIn Progress=>None
      Assigned tocazfi=>None
      Planned Release2.5.0=>
    Fri Aug 5 07:51:50 2011cazfiStatusNone=>In Progress
      Assigned toNone=>cazfi
      Planned Release=>2.5.0
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup