summaryrefslogtreecommitdiff
path: root/src/Fl_BMP_Image.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-05-25 02:56:59 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-05-25 02:56:59 +0000
commitf79c2375da765077fd6cbd9fbaf9fe20bcbf5a55 (patch)
tree8993637e99c915f3a7f153a998b341e62d753b5c /src/Fl_BMP_Image.cxx
parent30b57935f9fdccee9e830cfded039dfa2a1602b3 (diff)
Tag image data as allocated so that we don't waste memory.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_BMP_Image.cxx')
-rw-r--r--src/Fl_BMP_Image.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_BMP_Image.cxx b/src/Fl_BMP_Image.cxx
index 4a911e56c..dbc6841f0 100644
--- a/src/Fl_BMP_Image.cxx
+++ b/src/Fl_BMP_Image.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_BMP_Image.cxx,v 1.1.2.3 2002/05/24 14:19:19 easysw Exp $"
+// "$Id: Fl_BMP_Image.cxx,v 1.1.2.4 2002/05/25 02:56:59 easysw Exp $"
//
// Fl_BMP_Image routines.
//
@@ -140,6 +140,7 @@ Fl_BMP_Image::Fl_BMP_Image(const char *bmp) // I - File to read
fseek(fp, offbits, SEEK_SET);
array = new uchar[w() * h() * d()];
+ alloc_array = 1;
// Read the image data...
color = 0;
@@ -370,5 +371,5 @@ read_long(FILE *fp) { // I - File to read from
//
-// End of "$Id: Fl_BMP_Image.cxx,v 1.1.2.3 2002/05/24 14:19:19 easysw Exp $".
+// End of "$Id: Fl_BMP_Image.cxx,v 1.1.2.4 2002/05/25 02:56:59 easysw Exp $".
//