Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2006:
[Freeciv-Dev] (PR#15666) SDL client: city dialog city overview ugly with
Home

[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]
To: himasaram@xxxxxxxx
Subject: [Freeciv-Dev] (PR#15666) SDL client: city dialog city overview ugly with larger non-iso tileset
From: "Christian Prochaska" <cp.ml.freeciv.dev@xxxxxxxxxxxxxx>
Date: Thu, 23 Feb 2006 14:41:04 -0800
Reply-to: bugs@xxxxxxxxxxx

<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));
     

[Prev in Thread] Current Thread [Next in Thread]