URL:
http://gna.org/patch/?4148
Summary: Low-level zoom support
Project: Freeciv
Submitted by: cazfi
Submitted on: Thu 05 Sep 2013 09:02:12 PM EEST
Category: client
Priority: 5 - Normal
Status: Ready For Test
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: 2.6.0
___
Details:
This ticket is about getting my current work on zoom-feature in to prevent it
from degenerading as separate patch. It does nothing user visible as zooming
level is hardcoded value, but should not break anything either when the value
is set to 1.0.
It adds most of the mapview zoom level handling, controlled with map_zoom
variable, to client common code and gtk3-client code support for zooming. The
idea is that it's the gui that initiates zooming level change from value 1.0,
so guis that do not support zooming, should not request it from the common
code.
Changing the zooming level runtime is not tested - so far the level has been
set compile time and never changed. There's likely to be issues in updating
the view if zoom level changes runtime. There's glitches likely caused by
missing handling of half-pixels (zooming can cause computational border
between two sprites to be mid-pixel, and currently there's no code to make
sure that such a border-pixel gets sane color)
Multiplications and divisions by zoom level has been added quite mechanically
- there's certainly space for improving this to avoid rounding errors and
doing unnecessary operations (to first multiply and then to divide with the
same value)
___
File Attachments:
---
Date: Thu 05 Sep 2013 09:02:12 PM EEST Name: ZoomLowLevel.patch.bz2 Size:
11kB By: cazfi
http://gna.org/patch/download.php?file_id=18883
___
Reply to this item at:
http://gna.org/patch/?4148
___
Message sent via/by Gna!
http://gna.org/
___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev