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

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



The branch, master has been updated
  discards  da92b12d00068daaf4ad7118ab31c327e1317056 (commit)
       via  e51bd61678dcedf2e1855f3c244f113e77073f54 (commit)
      from  da92b12d00068daaf4ad7118ab31c327e1317056 (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/ps/ps.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


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

commit e51bd61678dcedf2e1855f3c244f113e77073f54
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/ps: Fix arc drawing since pcb_printf patch
    
    The last parameter to the arc macro we use for drawing arcs is unitless,
    so should be a double. This was broken by:
    
    commit fa9ae1f6b1eabaab961795ce7be53afe46eaa735
    
        Convert ps/eps/lpr HID's to use pcb-printf
    
    I've reverted the change, and added an extra (double) cast compared
    to what was there before, I'm not sure we wouldn't get an integer
    division without it. One day I should learn these type promotion /
    casting rules properly! ;)

:100644 100644 f2e0706... 201b721... M	src/hid/ps/ps.c

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

commit e51bd61678dcedf2e1855f3c244f113e77073f54
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/ps: Fix arc drawing since pcb_printf patch
    
    The last parameter to the arc macro we use for drawing arcs is unitless,
    so should be a double. This was broken by:
    
    commit fa9ae1f6b1eabaab961795ce7be53afe46eaa735
    
        Convert ps/eps/lpr HID's to use pcb-printf
    
    I've reverted the change, and added an extra (double) cast compared
    to what was there before, I'm not sure we wouldn't get an integer
    division without it. One day I should learn these type promotion /
    casting rules properly! ;)

diff --git a/src/hid/ps/ps.c b/src/hid/ps/ps.c
index f2e0706..201b721 100644
--- a/src/hid/ps/ps.c
+++ b/src/hid/ps/ps.c
@@ -1055,9 +1055,9 @@ ps_draw_arc (hidGC gc, int cx, int cy, int width, int height,
 	  cx, cy, width, height, start_angle, delta_angle, sa, ea);
 #endif
   use_gc (gc);
-  pcb_fprintf (global.f, "%d %d %mi %mi %mi %mi %mi a\n",
+  pcb_fprintf (global.f, "%d %d %mi %mi %mi %mi %g a\n",
                sa, ea, -width, height, cx, cy,
-               (global.linewidth + 2 * global.bloat) / width);
+               (double) (global.linewidth + 2 * global.bloat) / (double) width);
 }
 
 static void




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