[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (7f070cde37c28a4b543059a3666a84019f3b84bd)
The branch, master has been updated
via 7f070cde37c28a4b543059a3666a84019f3b84bd (commit)
via c4a1338b4ad10400c0d86011617f4632991ea1bf (commit)
from ec803f59850f204a9743e2b24efc591500f2eebc (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/data.c | 2 --
src/data.h | 2 --
src/file.c | 3 ---
src/macro.h | 3 ---
4 files changed, 0 insertions(+), 10 deletions(-)
=================
Commit Messages
=================
commit 7f070cde37c28a4b543059a3666a84019f3b84bd
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
Remove unused variables Xorig and Yorig
:100644 100644 7a8f575... 3cf6231... M src/data.c
:100644 100644 6e70fd3... 22eea0c... M src/data.h
:100644 100644 8a52614... 4c40162... M src/file.c
commit c4a1338b4ad10400c0d86011617f4632991ea1bf
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
macro.h: Remove unused, obsolete conversion macros TO_PCB_X and TO_PCB_Y
:100644 100644 6dcd0d1... 625d639... M src/macro.h
=========
Changes
=========
commit 7f070cde37c28a4b543059a3666a84019f3b84bd
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
Remove unused variables Xorig and Yorig
diff --git a/src/data.c b/src/data.c
index 7a8f575..3cf6231 100644
--- a/src/data.c
+++ b/src/data.c
@@ -57,8 +57,6 @@ BufferType Buffers[MAX_BUFFER]; /* my buffers */
LibraryType Library; /* the library */
bool Bumped; /* if the undo serial number has changed */
-LocationType Xorig, Yorig; /* origin offset for drawing in pixmap */
-
int addedLines;
double Zoom_Multiplier = 0.01;
diff --git a/src/data.h b/src/data.h
index 6e70fd3..22eea0c 100644
--- a/src/data.h
+++ b/src/data.h
@@ -59,8 +59,6 @@ extern LibraryType Library;
/*extern DeviceInfoType PrintingDevice[];*/
-extern LocationType Xorig, Yorig;
-
extern double Zoom_Multiplier;
extern char *Progname;
diff --git a/src/file.c b/src/file.c
index 8a52614..4c40162 100644
--- a/src/file.c
+++ b/src/file.c
@@ -376,9 +376,6 @@ LoadPCB (char *Filename)
Crosshair.Y =
MAX (0, MIN (PCB->CursorY, (LocationType) PCB->MaxHeight));
- Xorig = Crosshair.X - TO_PCB (Output.Width / 2);
- Yorig = Crosshair.Y - TO_PCB (Output.Height / 2);
-
/* update cursor confinement and output area (scrollbars) */
ChangePCBSize (PCB->MaxWidth, PCB->MaxHeight);
commit c4a1338b4ad10400c0d86011617f4632991ea1bf
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
macro.h: Remove unused, obsolete conversion macros TO_PCB_X and TO_PCB_Y
diff --git a/src/macro.h b/src/macro.h
index 6dcd0d1..625d639 100644
--- a/src/macro.h
+++ b/src/macro.h
@@ -53,9 +53,6 @@
#ifndef TO_PCB
#define TO_PCB(x) ((LocationType)((x)/Zoom_Multiplier))
#endif
-#define TO_PCB_X(x) TO_PCB(x) + Xorig
-#define TO_PCB_Y(y) (SWAP_IDENT ? \
- PCB->MaxHeight - TO_PCB(y) - Yorig : TO_PCB(y) + Yorig)
/* ---------------------------------------------------------------------------
* misc macros, some might already be defined by <limits.h>
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs