summaryrefslogtreecommitdiff
path: root/src/DataImage.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-06-25 13:02:31 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-06-25 13:02:31 +0200
commitbf376cf0a996b08c39f22d46ba68be4e7957777f (patch)
tree3ebf29fea7f8bd7183dabdbd7388dc264194f7c3 /src/DataImage.cxx
parentb8a44e5e78d6b9f9c045f1c4e9600e1b346e099c (diff)
first working version
Diffstat (limited to 'src/DataImage.cxx')
-rw-r--r--src/DataImage.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/DataImage.cxx b/src/DataImage.cxx
index c230ed1..f7109cd 100644
--- a/src/DataImage.cxx
+++ b/src/DataImage.cxx
@@ -30,6 +30,7 @@
DataImage::DataImage(int X, int Y, int W, int H): Fl_Widget(X, Y, W, H) {
d = 3;
data = (uchar*) malloc(W * H * d);
+ memset(data, 0, W * H * d);
}
DataImage::~DataImage() {