diff options
Diffstat (limited to 'dw')
-rw-r--r-- | dw/image.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dw/image.hh b/dw/image.hh index 8e133b28..a8314d4f 100644 --- a/dw/image.hh +++ b/dw/image.hh @@ -159,6 +159,13 @@ public: void setIsMap (); void setUseMap (ImageMapsList *list, Object *key); + + /* This is a hack for the perhaps frivolous feature of drawing image map + * shapes when there is no image to display. If the map is defined after + * an image using an image map, and the actual image data has not been + * loaded, tell the image to redraw. + */ + void forceMapRedraw () { if (mapKey && ! buffer) queueDraw (); }; }; } // namespace dw |