summaryrefslogtreecommitdiff
path: root/src/drivers/Quartz
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-11-20 10:18:26 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-11-20 10:18:26 +0100
commit0952d594f8f62d04880d7c0d743e6aab3c77e59b (patch)
treeabe4e6083bf0dcaea57935a96d726fdde858ce03 /src/drivers/Quartz
parent1f05a0df443fd5e883d84f1322da6fcd7ad80f6d (diff)
Fix fl_draw_image sometimes crashes when window is scaled - cont'd (#1134)
Diffstat (limited to 'src/drivers/Quartz')
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Graphics_Driver_image.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_image.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_image.cxx
index 87d4d4f32..932ef7d82 100644
--- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_image.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_image.cxx
@@ -107,6 +107,7 @@ static void innards(const uchar *buf, int X, int Y, int W, int H,
}
void Fl_Quartz_Graphics_Driver::draw_image(const uchar* buf, int x, int y, int w, int h, int d, int l){
+ d &= ~FL_IMAGE_WITH_ALPHA;
innards(buf,x,y,w,h,d,l,(d<3&&d>-3),0,0,gc_,this);
}
void Fl_Quartz_Graphics_Driver::draw_image(Fl_Draw_Image_Cb cb, void* data,