Revision: 41841
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41841&view=rev
Author:   bob1961
Date:     2010-12-29 20:25:08 +0000 (Wed, 29 Dec 2010)

Log Message:
-----------
grsp->grs_y was not getting set properly

Modified Paths:
--------------
    brlcad/trunk/src/libged/rect.c

Modified: brlcad/trunk/src/libged/rect.c
===================================================================
--- brlcad/trunk/src/libged/rect.c      2010-12-29 20:23:40 UTC (rev 41840)
+++ brlcad/trunk/src/libged/rect.c      2010-12-29 20:25:08 UTC (rev 41841)
@@ -366,7 +366,7 @@
 ged_rect_image2view(struct ged_rect_state *grsp)
 {
     grsp->grs_x = (grsp->grs_pos[X] / (fastf_t)grsp->grs_cdim[X] - 0.5) * 2.0;
-    grsp->grs_y = (grsp->grs_pos[Y] / (fastf_t)grsp->grs_cdim[Y] / 
grsp->grs_aspect - 0.5) * 2.0;
+    grsp->grs_y = ((0.5 - (grsp->grs_cdim[Y] - grsp->grs_pos[Y]) / 
(fastf_t)grsp->grs_cdim[Y]) / grsp->grs_aspect * 2.0);
     grsp->grs_width = grsp->grs_dim[X] * 2.0 / (fastf_t)grsp->grs_cdim[X];
     grsp->grs_height = grsp->grs_dim[Y] * 2.0 / (fastf_t)grsp->grs_cdim[X];
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to