[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (e2001e8a7c4b17d3780b467426890350cb37a174)
The branch, master has been updated
via e2001e8a7c4b17d3780b467426890350cb37a174 (commit)
from 6808e757496cca0347d92d72851d0c34ae31b532 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
src/hid/gerber/gerber.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
=================
Commit Messages
=================
commit e2001e8a7c4b17d3780b467426890350cb37a174
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>
Re-insert casts to unit conversion macros in gerber.c
:100644 100644 b41556e... 5e0b7b6... M src/hid/gerber/gerber.c
=========
Changes
=========
commit e2001e8a7c4b17d3780b467426890350cb37a174
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>
Re-insert casts to unit conversion macros in gerber.c
diff --git a/src/hid/gerber/gerber.c b/src/hid/gerber/gerber.c
index b41556e..5e0b7b6 100644
--- a/src/hid/gerber/gerber.c
+++ b/src/hid/gerber/gerber.c
@@ -71,14 +71,14 @@ static void gerber_fill_polygon (hidGC gc, int n_coords, int *x, int *y);
/*----------------------------------------------------------------------------*/
/* These are for films */
-#define gerberX(pcb, x) (x)
-#define gerberY(pcb, y) ((pcb)->MaxHeight - (y))
-#define gerberXOffset(pcb, x) (x)
-#define gerberYOffset(pcb, y) (-(y))
+#define gerberX(pcb, x) ((BDimension) (x))
+#define gerberY(pcb, y) ((BDimension) ((pcb)->MaxHeight - (y)))
+#define gerberXOffset(pcb, x) ((BDimension) (x))
+#define gerberYOffset(pcb, y) ((BDimension) (-(y)))
/* These are for drills (printed as mils but are really 1/10th mil) */
-#define gerberDrX(pcb, x) ((x) * 10)
-#define gerberDrY(pcb, y) (((pcb)->MaxHeight - (y)) * 10)
+#define gerberDrX(pcb, x) ((BDimension) (x) * 10)
+#define gerberDrY(pcb, y) ((BDimension) ((pcb)->MaxHeight - (y)) * 10)
/*----------------------------------------------------------------------------*/
/* Private data structures */
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs