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

gEDA-cvs: gaf.git: branch: master updated (1.5.1-20081221-57-g8c07fec)



The branch, master has been updated
       via  8c07fecee9fb59fc65f24b75f03b3765f032fec6 (commit)
       via  6b4ffb9c7c7b635c52e018347866287a85a6ace0 (commit)
      from  1c64bc071b9b89ca66582fecee9d5328b7da2f46 (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
=========

 gschem/lib/gschem-colormap-lightbg |    2 +-
 gschem/src/o_text.c                |    6 ++++++
 2 files changed, 7 insertions(+), 1 deletions(-)


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

commit 8c07fecee9fb59fc65f24b75f03b3765f032fec6
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Sat Dec 27 11:40:13 2008 +0000

    gschem: Improve clarity of text rendering by turning its origin mark off
    
    The origin mark is now only drawn when text is selected, and the mark its
    self is greater than a certain size on screen. This allows us to retain
    the mark's utility in checking text is correctly aligned.

:100644 100644 5ae4189... 5946a1e... M	gschem/src/o_text.c

commit 6b4ffb9c7c7b635c52e018347866287a85a6ace0
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Sat Dec 27 11:40:13 2008 +0000

    gschem: Use a lighter colour for major grid lines in the mesh grid.
    
    This makes the major squares less obtrusive on the page, whilst
    still retaining a visible distinction to the minor lines.

:100644 100644 b513c91... 3116542... M	gschem/lib/gschem-colormap-lightbg

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

commit 8c07fecee9fb59fc65f24b75f03b3765f032fec6
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Sat Dec 27 11:40:13 2008 +0000

    gschem: Improve clarity of text rendering by turning its origin mark off
    
    The origin mark is now only drawn when text is selected, and the mark its
    self is greater than a certain size on screen. This allows us to retain
    the mark's utility in checking text is correctly aligned.

diff --git a/gschem/src/o_text.c b/gschem/src/o_text.c
index 5ae4189..5946a1e 100644
--- a/gschem/src/o_text.c
+++ b/gschem/src/o_text.c
@@ -35,6 +35,8 @@
 #include <dmalloc.h>
 #endif
 
+#define MINIMUM_MARK_SMALL_DIST 1
+
 
 /*! \todo Finish function documentation!!!
  *  \brief
@@ -181,6 +183,10 @@ void o_text_draw(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
 
   small_dist = SCREENabs(toplevel, 10);
 
+  /* Switch of mark drawing for non-selected text, and at small sizes */
+  if (!o_current->selected || small_dist < MINIMUM_MARK_SMALL_DIST)
+    return;
+
   WORLDtoSCREEN( toplevel, o_current->text->x, o_current->text->y, &screen_x1, &screen_y1 );
 
   /* this is not really a fix, but a lame patch */

commit 6b4ffb9c7c7b635c52e018347866287a85a6ace0
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Sat Dec 27 11:40:13 2008 +0000

    gschem: Use a lighter colour for major grid lines in the mesh grid.
    
    This makes the major squares less obtrusive on the page, whilst
    still retaining a visible distinction to the minor lines.

diff --git a/gschem/lib/gschem-colormap-lightbg b/gschem/lib/gschem-colormap-lightbg
index b513c91..3116542 100644
--- a/gschem/lib/gschem-colormap-lightbg
+++ b/gschem/lib/gschem-colormap-lightbg
@@ -23,7 +23,7 @@
    (attribute          "#000000")
    (logic-bubble       "#008b8b")
    (dots-grid          "#7f7f7f")
-   (mesh-grid-major    "#e1e1e1")
+   (mesh-grid-major    "#e3e3e3")
    (mesh-grid-minor    "#e9e9e9")
    (detached-attribute "#ff0000")
    (text               "#008b00")




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