[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/server character.cpp
From: |
Udo Giacomozzi |
Subject: |
[Gnash-commit] gnash/server character.cpp |
Date: |
Tue, 06 Nov 2007 15:44:27 +0000 |
CVSROOT: /cvsroot/gnash
Module name: gnash
Changes by: Udo Giacomozzi <udog> 07/11/06 15:44:27
Modified files:
server : character.cpp
Log message:
* libgeometry/snappingrange.h: replace the distance method with a
more efficient area before/after comparison method; make
snap_factor and single_mode private members and provide access
methods
* libgeometry/Range2d.h: new getArea() function
* gui/gui.cpp, server/character.cpp: apply snappingrange changes
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/character.cpp?cvsroot=gnash&r1=1.60&r2=1.61
Patches:
Index: character.cpp
===================================================================
RCS file: /cvsroot/gnash/gnash/server/character.cpp,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -b -r1.60 -r1.61
--- character.cpp 1 Nov 2007 21:54:45 -0000 1.60
+++ character.cpp 6 Nov 2007 15:44:27 -0000 1.61
@@ -17,7 +17,7 @@
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
-/* $Id: character.cpp,v 1.60 2007/11/01 21:54:45 strk Exp $ */
+/* $Id: character.cpp,v 1.61 2007/11/06 15:44:27 udog Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -167,15 +167,10 @@
debug_file, debug_line);
#endif
- // NOTE: we need to set snap_distance in order to avoid too
tight
- // invalidated ranges. The GUI chooses the appropriate distance
in base
- // of various parameters but for this internal ranges list we
don't know
- // that value. So we set snap_distance to some generic value
and hope this
- // does not produce too many nor too coarse ranges. Note when
calculating
- // the actual invalidated ranges the correct distance is used
(but there
- // may be problems when the GUI chooses a smaller value). Needs
to be
- // fixed.
- m_old_invalidated_ranges.snap_distance = 200.0;
+ // NOTE: the SnappingRanges instance used here is not
initialized by the
+ // GUI and therefore uses the default settings. This should not be a
+ // problem but special snapping ranges configuration done in gui.cpp
+ // is ignored here...
m_old_invalidated_ranges.setNull();
add_invalidated_bounds(m_old_invalidated_ranges, true);
- [Gnash-commit] gnash/server character.cpp,
Udo Giacomozzi <=