summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Fl_Terminal.cxx4
-rw-r--r--test/handle_keys.cxx2
-rw-r--r--test/unittest_scrollbarsize.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_Terminal.cxx b/src/Fl_Terminal.cxx
index 4e3c8e45d..7c3c91de3 100644
--- a/src/Fl_Terminal.cxx
+++ b/src/Fl_Terminal.cxx
@@ -3659,8 +3659,8 @@ void Fl_Terminal::draw(void) {
}
// Detect if Fl::scrollbar_size() was changed in size, recalc if so
if (scrollbar_size_ == 0 &&
- ( scrollbar->visible() && scrollbar->w() != Fl::scrollbar_size() ||
- hscrollbar->visible() && hscrollbar->h() != Fl::scrollbar_size())) {
+ ((scrollbar->visible() && scrollbar->w() != Fl::scrollbar_size()) ||
+ (hscrollbar->visible() && hscrollbar->h() != Fl::scrollbar_size()))) {
update_scrollbar();
}
// Draw group first, terminal last
diff --git a/test/handle_keys.cxx b/test/handle_keys.cxx
index 09838a5de..6aee5b0cf 100644
--- a/test/handle_keys.cxx
+++ b/test/handle_keys.cxx
@@ -230,7 +230,7 @@ int app::handle(int ev) {
char capslk = (Fl::event_state() & FL_CAPS_LOCK) ? 'L' : '.';
tty->printf("%06x ", ekey); // event key number (hex)
- int lg;
+ int lg = 0;
tty->printf("%s", get_keyname(ekey, lg));
for (int i = lg; i < 14; i++) {
tty->printf(" ");
diff --git a/test/unittest_scrollbarsize.cxx b/test/unittest_scrollbarsize.cxx
index b964fcebe..afc34789a 100644
--- a/test/unittest_scrollbarsize.cxx
+++ b/test/unittest_scrollbarsize.cxx
@@ -1,7 +1,7 @@
//
// Unit tests for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2022 by Bill Spitzak and others.
+// Copyright 1998-2024 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -204,7 +204,7 @@ public:
int texty = tabley + tableh + ysep;
int texth = browh;
int termy = texty + texth + ysep;
- int termh = texth;
+ // int termh = texth; // unused but left because it's documented above
brow_a = makebrowser(X+ 10,browy,100,browh,"Browser A");
brow_b = makebrowser(X+120,browy,100,browh,"Browser B");
brow_c = makebrowser(X+230,browy,100,browh,"Browser C");