Fixes warnings about test/icon.cxx in issue #296

This commit is contained in:
Greg Ercolano 2021-11-26 09:50:19 -08:00
parent 390fa9caa7
commit 6fc5c16e1c
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ static Fl_Double_Window *win;
void choice_cb(Fl_Widget *, void *v) {
Fl_Color c = (Fl_Color)fl_uint(v);
uchar buffer[32*32*3];
static uchar buffer[32*32*3]; // static: issue #296
Fl_RGB_Image icon(buffer, 32, 32, 3);
icon.color_average(c, 0.0);
win->icon(&icon);