diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-11-19 15:26:47 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-11-19 15:26:47 +0100 |
| commit | 619677b75c19173e26adf88f02870b5721f82736 (patch) | |
| tree | 50198885b49b4e5dcba2fa856a26d3a7ff2f7e38 /FL | |
| parent | 180b4bad2e23279ad9790518fc8e09253eb29275 (diff) | |
Fix fl_draw_image sometimes crashes when window is scaled (#1134)
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/fl_draw.H | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/FL/fl_draw.H b/FL/fl_draw.H index 6535d031a..576e553d2 100644 --- a/FL/fl_draw.H +++ b/FL/fl_draw.H @@ -1078,17 +1078,13 @@ 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. */ -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(buf, X, Y, W, H, D, L); -} +void fl_draw_image(const uchar *buf, int X, int Y, int W, int H, int D = 3, int L = 0); /** 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) */ -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(buf, X, Y, W, H, D, L); -} +void fl_draw_image_mono(const uchar *buf, int X, int Y, int W, int H, int D = 1, int L = 0); /** Draw an image using a callback function to generate image data. |
