summaryrefslogtreecommitdiff
path: root/src/Fl_Message.cxx
diff options
context:
space:
mode:
authormaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 18:12:40 +0500
committermaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 18:12:40 +0500
commitb4995f979d127cea667b4e2b71c91e9db4ab52ef (patch)
treefbebc775e10932bace8d6a7c3481b1ba200c64db /src/Fl_Message.cxx
parent9575eb0a1ffa8150f70f88b5f6b55f342c3c0088 (diff)
wip
Diffstat (limited to 'src/Fl_Message.cxx')
-rw-r--r--src/Fl_Message.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_Message.cxx b/src/Fl_Message.cxx
index d3112c562..78cf03951 100644
--- a/src/Fl_Message.cxx
+++ b/src/Fl_Message.cxx
@@ -180,7 +180,8 @@ Fl_Message::Fl_Message(const char *iconlabel)
// create the buttons (positions: right to left)
// button 1 is a return button
- for (int b = 0, x = 310; b < 3; b++, x -= 100) {
+ int b, x;
+ for (b = 0, x = 310; b < 3; b++, x -= 100) {
if (b == 1) {
button_[b] = new Fl_Return_Button(x, 70, 90, 23);
} else {
@@ -192,7 +193,7 @@ Fl_Message::Fl_Message(const char *iconlabel)
// add the buttons left to right for tab navigation
- for (int b = 2; b >= 0; b--) {
+ for (b = 2; b >= 0; b--) {
window_->add(button_[b]);
}