aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/ImageImlib2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/ImageImlib2.cc')
-rw-r--r--src/FbTk/ImageImlib2.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/ImageImlib2.cc b/src/FbTk/ImageImlib2.cc
index ca47209..62ed182 100644
--- a/src/FbTk/ImageImlib2.cc
+++ b/src/FbTk/ImageImlib2.cc
@@ -147,8 +147,8 @@ PixmapWithMask *ImageImlib2::load(const std::string &filename, int screen_num) c
147 // pm and mask belong to imlib2, 147 // pm and mask belong to imlib2,
148 // so we have to copy them 148 // so we have to copy them
149 PixmapWithMask* result = new PixmapWithMask(); 149 PixmapWithMask* result = new PixmapWithMask();
150 result->pixmap().copy(pm); 150 result->pixmap().copy(pm, 0, 0);
151 result->mask().copy(mask); 151 result->mask().copy(mask, 0, 0);
152 152
153 // mark pm and mask as freeable in imlib 153 // mark pm and mask as freeable in imlib
154 imlib_free_image_and_decache(); 154 imlib_free_image_and_decache();