mirror of https://github.com/fltk/fltk
Fix several compiler warnings
Three unrelated but only minor warnings.
This commit is contained in:
parent
13526f04ab
commit
5e4f51ac6b
|
@ -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
|
||||
|
|
|
@ -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(" ");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue