gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] libvob/src/lines Lines.cxx


From: Matti Katila
Subject: [Gzz-commits] libvob/src/lines Lines.cxx
Date: Mon, 04 Aug 2003 09:45:14 -0400

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Branch:         
Changes by:     Matti Katila <address@hidden>   03/08/04 09:45:14

Modified files:
        src/lines      : Lines.cxx 

Log message:
        some lines

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/src/lines/Lines.cxx.diff?tr1=1.5&tr2=1.6&r1=text&r2=text

Patches:
Index: libvob/src/lines/Lines.cxx
diff -u libvob/src/lines/Lines.cxx:1.5 libvob/src/lines/Lines.cxx:1.6
--- libvob/src/lines/Lines.cxx:1.5      Wed Jun 11 13:41:56 2003
+++ libvob/src/lines/Lines.cxx  Mon Aug  4 09:45:14 2003
@@ -117,14 +117,14 @@
      */
     ContinuousLine::ContinuousLine(GLuint textId, float lineWidth,
                                   int joinStyle,  bool chain,
-                                   float * points, int size) {
+                                   vector<float> points) {
         ContinuousLine(textId, lineWidth, joinStyle, chain);
 
-        if ( (size % 3) != 0) {
+        if ( (points.size() % 3) != 0) {
             cerr << "Lines error:: Size not divisible by three (x,y,z)!\n";
             return;
         }
-        for (int i=0; i+2<size; i+=3){
+        for (unsigned int i=0; i+2<points.size(); i+=3){
             add(points[i], points[i+1], points[i+2]);
         }
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]