Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2005:
[Freeciv-Dev] (PR#12493) xaw client compile fixes
Home

[Freeciv-Dev] (PR#12493) xaw client compile fixes

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12493) xaw client compile fixes
From: "Vijay Kiran Kamuju" <infyquest@xxxxxxxxx>
Date: Sun, 13 Mar 2005 00:29:40 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12493 >

the previus commit for the new get_text_size patch broke xaw client compilation

so i am sending a patch for it

? graphics.diff
?
Index: client/gui-xaw/mapview.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-xaw/mapview.c,v
retrieving revision 1.194
diff -u -r1.194 mapview.c
--- client/gui-xaw/mapview.c    11 Mar 2005 07:46:01 -0000      1.194
+++ client/gui-xaw/mapview.c    12 Mar 2005 03:09:32 -0000
@@ -678,7 +678,7 @@
   }
   if (height) {
     /* ??? */
-    *height = main_exts->max_logical_extent.height;
+    *height = XExtentsOfFontSet(*fonts[font])->max_logical_extent.height;
   }
 }
 
@@ -691,7 +691,7 @@
                     enum client_font font, enum color_std color,
                     const char *text)
 {
-  draw_shadowed_string(pcanvas, fonts[font], font_gcs[font],
+  draw_shadowed_string(pcanvas, (XFontSet)fonts[font], (GC)font_gcs[font],
                       color, COLOR_STD_BLACK,
                       canvas_x, canvas_y, text);
 }

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12493) xaw client compile fixes, Vijay Kiran Kamuju <=