Skip to content

Commit

Permalink
Restore pixmap drawing under X11-noCairo broken by 0952d59
Browse files Browse the repository at this point in the history
  • Loading branch information
ManoloFLTK committed Nov 27, 2024
1 parent 95fc60b commit 3633b34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions FL/Fl_Graphics_Driver.H
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class FL_EXPORT Fl_Graphics_Driver {
friend void fl_draw_image(Fl_Draw_Image_Cb cb, void* data, int X,int Y,int W,int H, int D);
friend void fl_copy_offscreen(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy);
friend int fl_convert_pixmap(const char*const* cdata, uchar* out, Fl_Color bg);
friend int fl_draw_pixmap(const char*const* cdata, int x, int y, Fl_Color bg);
friend FL_EXPORT void gl_start();
/* ============== Implementation note about image drawing =========================
A graphics driver can implement up to 6 virtual member functions to draw images:
Expand Down
2 changes: 1 addition & 1 deletion src/fl_draw_pixmap.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ int fl_draw_pixmap(const char*const* cdata, int x, int y, Fl_Color bg) {
} // for Y
}

fl_draw_image(buffer, x, y, w, h, 4 | FL_IMAGE_WITH_ALPHA);
fl_graphics_driver->draw_image(buffer, x, y, w, h, 4);

delete[] buffer;
return 1;
Expand Down

0 comments on commit 3633b34

Please sign in to comment.