[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (4082cf886a5d65464b8e3e36a3724c5142adb92e)



The branch, master has been updated
       via  4082cf886a5d65464b8e3e36a3724c5142adb92e (commit)
       via  13f48370d78ebbd886c4a56f5d86747d0da61cf9 (commit)
      from  026a0f33b0257e4d17fd9f1a09ef18664576837d (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/draw.c |   26 +++++++++++++-------------
 src/misc.c |    2 +-
 src/misc.h |    2 +-
 3 files changed, 15 insertions(+), 15 deletions(-)


=================
 Commit Messages
=================

commit 4082cf886a5d65464b8e3e36a3724c5142adb92e
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    draw.c: Add const qualifiers to some BoxType *drawn_area parameters

:100644 100644 e0da9a9... f8db2ba... M	src/draw.c

commit 13f48370d78ebbd886c4a56f5d86747d0da61cf9
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    misc.c: Add const qualifier to BoxType * parameter passed to CountHoles

:100644 100644 f6e01c5... ee7e26d... M	src/misc.c
:100644 100644 f625cbc... 49246f1... M	src/misc.h

=========
 Changes
=========

commit 4082cf886a5d65464b8e3e36a3724c5142adb92e
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    draw.c: Add const qualifiers to some BoxType *drawn_area parameters

diff --git a/src/draw.c b/src/draw.c
index e0da9a9..f8db2ba 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -81,15 +81,15 @@ static bool doing_assy = false;
 /* ---------------------------------------------------------------------------
  * some local prototypes
  */
-static void DrawEverything (BoxTypePtr);
+static void DrawEverything (const BoxType *);
 static void DrawPPV (int group, const BoxType *);
 static void DrawLayerGroup (int, const BoxType *);
 static void AddPart (void *);
 static void SetPVColor (PinTypePtr, int);
 static void DrawEMark (ElementTypePtr, Coord, Coord, bool);
-static void DrawMask (int side, BoxType *);
-static void DrawPaste (int side, BoxType *);
-static void DrawRats (BoxType *);
+static void DrawMask (int side, const BoxType *);
+static void DrawPaste (int side, const BoxType *);
+static void DrawRats (const BoxType *);
 static void DrawSilk (int side, const BoxType *);
 
 /*--------------------------------------------------------------------------------------
@@ -443,7 +443,7 @@ hole_callback (const BoxType * b, void *cl)
 }
 
 static void
-DrawHoles (bool draw_plated, bool draw_unplated, BoxType *drawn_area)
+DrawHoles (bool draw_plated, bool draw_unplated, const BoxType *drawn_area)
 {
   int plated = -1;
 
@@ -623,7 +623,7 @@ PrintAssembly (int side, const BoxType * drawn_area)
  * initializes some identifiers for a new zoom factor and redraws whole screen
  */
 static void
-DrawEverything (BoxTypePtr drawn_area)
+DrawEverything (const BoxType *drawn_area)
 {
   int i, ngroups, side;
   int component, solder;
@@ -970,7 +970,7 @@ DrawSilk (int side, const BoxType * drawn_area)
 
 
 static void
-DrawMaskBoardArea (int mask_type, BoxType *screen)
+DrawMaskBoardArea (int mask_type, const BoxType *drawn_area)
 {
   /* Skip the mask drawing if the GUI doesn't want this type */
   if ((mask_type == HID_MASK_BEFORE && !gui->poly_before) ||
@@ -979,18 +979,18 @@ DrawMaskBoardArea (int mask_type, BoxType *screen)
 
   gui->use_mask (mask_type);
   gui->set_color (Output.fgGC, PCB->MaskColor);
-  if (screen == NULL)
+  if (drawn_area == NULL)
     gui->fill_rect (Output.fgGC, 0, 0, PCB->MaxWidth, PCB->MaxHeight);
   else
-    gui->fill_rect (Output.fgGC, screen->X1, screen->Y1,
-                                 screen->X2, screen->Y2);
+    gui->fill_rect (Output.fgGC, drawn_area->X1, drawn_area->Y1,
+                                 drawn_area->X2, drawn_area->Y2);
 }
 
 /* ---------------------------------------------------------------------------
  * draws solder mask layer - this will cover nearly everything
  */
 static void
-DrawMask (int side, BoxType * screen)
+DrawMask (int side, const BoxType *screen)
 {
   int thin = TEST_FLAG(THINDRAWFLAG, PCB) || TEST_FLAG(THINDRAWPOLYFLAG, PCB);
 
@@ -1019,7 +1019,7 @@ DrawMask (int side, BoxType * screen)
  * draws solder paste layer for a given side of the board
  */
 static void
-DrawPaste (int side, BoxType *drawn_area)
+DrawPaste (int side, const BoxType *drawn_area)
 {
   gui->set_color (Output.fgGC, PCB->ElementColor);
   ALLPAD_LOOP (PCB->Data);
@@ -1036,7 +1036,7 @@ DrawPaste (int side, BoxType *drawn_area)
 }
 
 static void
-DrawRats (BoxTypePtr drawn_area)
+DrawRats (const BoxType *drawn_area)
 {
   /*
    * XXX lesstif allows positive AND negative drawing in HID_MASK_CLEAR.

commit 13f48370d78ebbd886c4a56f5d86747d0da61cf9
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    misc.c: Add const qualifier to BoxType * parameter passed to CountHoles

diff --git a/src/misc.c b/src/misc.c
index f6e01c5..ee7e26d 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -706,7 +706,7 @@ hole_counting_callback (const BoxType * b, void *cl)
  * within_area.
  */
 void
-CountHoles (int *plated, int *unplated, BoxType *within_area)
+CountHoles (int *plated, int *unplated, const BoxType *within_area)
 {
   HoleCountStruct hcs = {0, 0};
 
diff --git a/src/misc.h b/src/misc.h
index f625cbc..49246f1 100644
--- a/src/misc.h
+++ b/src/misc.h
@@ -59,7 +59,7 @@ bool IsLayerEmpty (LayerTypePtr);
 bool IsLayerNumEmpty (int);
 bool IsLayerGroupEmpty (int);
 bool IsPasteEmpty (int);
-void CountHoles (int *, int *, BoxType *);
+void CountHoles (int *, int *, const BoxType *);
 BoxTypePtr GetDataBoundingBox (DataTypePtr);
 void CenterDisplay (Coord, Coord);
 void SetFontInfo (FontTypePtr);




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs