[Freeciv-Dev] (PR#9503) iso-support in the xaw client
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9503 >
This patch adds iso-view support to the gui-xaw client.
jason
? server/output
Index: client/gui-xaw/citydlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-xaw/citydlg.c,v
retrieving revision 1.119
diff -u -r1.119 citydlg.c
--- client/gui-xaw/citydlg.c 24 Jul 2004 12:42:33 -0000 1.119
+++ client/gui-xaw/citydlg.c 26 Jul 2004 04:31:33 -0000
@@ -727,7 +727,7 @@
pdialog->main_form,
XtNfromVert, pdialog->support_unit_label,
XtNwidth, UNIT_TILE_WIDTH,
- XtNheight, 3 * UNIT_TILE_HEIGHT / 2,
+ XtNheight, 3 * NORMAL_TILE_HEIGHT / 2,
NULL);
pdialog->present_unit_label=
@@ -970,7 +970,7 @@
XtNfromHoriz,
(XtArgVal)pdialog->support_unit_pixcomms[i-1],
XtNwidth, UNIT_TILE_WIDTH,
- XtNheight, 3 * UNIT_TILE_HEIGHT / 2,
+ XtNheight, 3 * NORMAL_TILE_HEIGHT / 2,
NULL);
}
Index: client/gui-xaw/graphics.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-xaw/graphics.c,v
retrieving revision 1.52
diff -u -r1.52 graphics.c
--- client/gui-xaw/graphics.c 24 Mar 2004 06:18:19 -0000 1.52
+++ client/gui-xaw/graphics.c 26 Jul 2004 04:31:33 -0000
@@ -70,7 +70,7 @@
***************************************************************************/
bool isometric_view_supported(void)
{
- return FALSE;
+ return TRUE;
}
/***************************************************************************
Index: client/gui-xaw/mapview.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-xaw/mapview.c,v
retrieving revision 1.179
diff -u -r1.179 mapview.c
--- client/gui-xaw/mapview.c 26 Jul 2004 04:05:59 -0000 1.179
+++ client/gui-xaw/mapview.c 26 Jul 2004 04:31:34 -0000
@@ -433,7 +433,11 @@
struct Sprite *psprite,
bool fog, int fog_x, int fog_y)
{
- /* PORTME */
+ canvas_put_sprite_full(pcanvas, canvas_x, canvas_y, psprite);
+
+ if (fog) {
+ canvas_fog_sprite_area(pcanvas, psprite, canvas_x, canvas_y);
+ }
}
/**************************************************************************
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#9503) iso-support in the xaw client,
Jason Short <=
|
|