From b4995f979d127cea667b4e2b71c91e9db4ab52ef Mon Sep 17 00:00:00 2001 From: maxim nikonov Date: Fri, 6 Feb 2026 18:12:40 +0500 Subject: wip --- src/fl_draw_pixmap.cxx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/fl_draw_pixmap.cxx') diff --git a/src/fl_draw_pixmap.cxx b/src/fl_draw_pixmap.cxx index 923186889..d24dd8b47 100644 --- a/src/fl_draw_pixmap.cxx +++ b/src/fl_draw_pixmap.cxx @@ -101,7 +101,8 @@ int fl_convert_pixmap(const char*const* cdata, uchar* out, Fl_Color bg) { ncolors--; } // read all the rest of the colors: - for (int i=0; i < ncolors; i++) { + int i; + for (i =0; i < ncolors; i++) { uchar* c = colors[*p++]; if (Fl_Graphics_Driver::need_pixmap_bg_color) { used_colors[color_count].r = *(p+0); @@ -115,7 +116,8 @@ int fl_convert_pixmap(const char*const* cdata, uchar* out, Fl_Color bg) { *c = 255; } } else { // normal XPM colormap with names - for (int i=0; i 127) b |= bit; bit <<= 1; -- cgit v1.2.3