summaryrefslogtreecommitdiff
path: root/FL/fl_draw.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-11-20 08:01:40 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-11-20 08:01:40 +0100
commit1f05a0df443fd5e883d84f1322da6fcd7ad80f6d (patch)
tree049f103e187094940857910ef739ea0a9d8a3cad /FL/fl_draw.H
parent6df2219aa0e56d9632824c94a3b217ec015aa22f (diff)
Fix fl_draw_image sometimes crashes when window is scaled - cont'd (#1134)
Diffstat (limited to 'FL/fl_draw.H')
-rw-r--r--FL/fl_draw.H8
1 files changed, 6 insertions, 2 deletions
diff --git a/FL/fl_draw.H b/FL/fl_draw.H
index 3ecd02f30..22a4374c1 100644
--- a/FL/fl_draw.H
+++ b/FL/fl_draw.H
@@ -1078,13 +1078,17 @@ FL_EXPORT void fl_draw_radio(int x, int y, int d, Fl_Color color);
any visual of 8 bits or less, and all common TrueColor visuals up
to 32 bits.
*/
-FL_EXPORT void fl_draw_image(const uchar *buf, int X, int Y, int W, int H, int D = 3, int L = 0);
+inline void fl_draw_image(const uchar *buf, int X, int Y, int W, int H, int D = 3, int L = 0) {
+ fl_graphics_driver->draw_image_general_(buf, X, Y, W, H, D, L);
+}
/**
Draw a gray-scale (1 channel) image.
\see fl_draw_image(const uchar* buf, int X,int Y,int W,int H, int D, int L)
*/
-FL_EXPORT void fl_draw_image_mono(const uchar *buf, int X, int Y, int W, int H, int D = 1, int L = 0);
+inline void fl_draw_image_mono(const uchar *buf, int X, int Y, int W, int H, int D = 1, int L = 0) {
+ fl_graphics_driver->draw_image_mono_general_(buf, X, Y, W, H, D, L);
+}
/**
Draw an image using a callback function to generate image data.