libcvd-members
[Top][All Lists]
Advanced

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

[libcvd-members] libcvd/cvd image.h


From: Edward Rosten
Subject: [libcvd-members] libcvd/cvd image.h
Date: Thu, 15 May 2008 17:39:15 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    libcvd
Changes by:     Edward Rosten <edrosten>        08/05/15 17:39:15

Modified files:
        cvd            : image.h 

Log message:
        Fix .fill() for subimages.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/image.h?cvsroot=libcvd&r1=1.38&r2=1.39

Patches:
Index: image.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/image.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- image.h     6 May 2008 23:04:38 -0000       1.38
+++ image.h     15 May 2008 17:39:14 -0000      1.39
@@ -421,7 +421,8 @@
                /// @param d The value to write into the image
                inline void fill(const T d)
                {
-                       ImageUtil::memfill(my_data, totalsize(), d);
+                       for(int y=0; y < my_size.y; y++)
+                               ImageUtil::memfill( (*this)[y], my_size.x, d);
                }
 
                /// Copy constructor




reply via email to

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