summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2023-11-20 13:33:08 -0800
committerGreg Ercolano <erco@seriss.com>2023-11-20 13:33:08 -0800
commit7c95aa7c79281a4c074421a414dbc0d178b49dce (patch)
tree6942ac52c6aa32a62be0bbb9ba2c3994ab91cada
parent625213101710575de986f74c1f2a85a7ab09b229 (diff)
Change Fl_Terminal default color() 0x0 -> FL_BLACK
-rw-r--r--examples/simple-terminal.cxx2
-rw-r--r--src/Fl_Terminal.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/simple-terminal.cxx b/examples/simple-terminal.cxx
index f51dc1bb2..19e9ee3a6 100644
--- a/examples/simple-terminal.cxx
+++ b/examples/simple-terminal.cxx
@@ -48,7 +48,7 @@ int main(int argc, char **argv) {
G_win->end();
G_win->resizable(G_win);
- G_win->show();
+ G_win->show(argc, argv);
Fl::add_timeout(0.5, tick_cb);
return Fl::run();
}
diff --git a/src/Fl_Terminal.cxx b/src/Fl_Terminal.cxx
index 80acf5c58..7667bde8e 100644
--- a/src/Fl_Terminal.cxx
+++ b/src/Fl_Terminal.cxx
@@ -3147,7 +3147,7 @@ void Fl_Terminal::init_(int X,int Y,int W,int H,const char*L,int rows,int cols,i
vscroll_->callback(scrollbar_cb, (void*)this);
resizable(0);
Fl_Group::box(FL_DOWN_FRAME);
- Fl_Group::color(0x0); // black bg by default
+ Fl_Group::color(FL_BLACK); // black bg by default
update_screen(true); // update internal vars after setting screen size/font
clear_screen_home(); // clear screen, home cursor
clear_history(); // clear history buffer