[Freeciv-Dev] (PR#15666) SDL client: city dialog city overview ugly with
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=15666 >
> [dmarks - Mi 22. Feb 2006, 10:21:22]:
>
> When using a large non-iso tileset (60x60 JRR tileset shown) the city
> overview is flowing over its boundaries. Not actually obstructing
> anything but quite ugly.
>
Patch attached.
Index: client/gui-sdl/citydlg.c
===================================================================
--- client/gui-sdl/citydlg.c (Revision 11633)
+++ client/gui-sdl/citydlg.c (Arbeitskopie)
@@ -1576,9 +1576,8 @@
{
SDL_Surface *pBuf = create_city_map(pCity);
- if (pBuf->w > adj_size(192) || pBuf->h > adj_size(134))
- {
- city_map_zoom = (pBuf->w > adj_size(192) ?
+ if (pBuf->w > adj_size(192) || pBuf->h > adj_size(134)) {
+ city_map_zoom = ((pBuf->w > pBuf->h) ?
(float)adj_size(192) / adj_size(pBuf->w)
: (float)adj_size(134) / adj_size(pBuf->h));
|
|