summaryrefslogtreecommitdiff
path: root/src/fl_overlay.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2024-08-18 14:41:50 +0200
committerMatthias Melcher <github@matthiasm.com>2024-08-18 14:42:21 +0200
commit47bf422e42762d301c85d9fa44351db7753f3e19 (patch)
tree6a0216944703f88e57af7d5a556ff76944d94307 /src/fl_overlay.cxx
parent5ad07b7b4bc18c7565202d21118a78cbad242927 (diff)
Ducumentation fix for previous commit
Diffstat (limited to 'src/fl_overlay.cxx')
-rw-r--r--src/fl_overlay.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fl_overlay.cxx b/src/fl_overlay.cxx
index d4077afc5..82e4a1354 100644
--- a/src/fl_overlay.cxx
+++ b/src/fl_overlay.cxx
@@ -150,9 +150,11 @@ void fl_overlay_rect(int x, int y, int w, int h) {
d = -y; if (d>0) { y += d; h -= d; }
d = (y+h)-win->h(); if (d>0) { h -= d; }
}
+ //
if (w<1) w = 1;
if (h<1) h = 1;
- // Store the rect so we can erase it later, and draw it now
+ // Store the rect in global variables so we can erase it later
px = x; py = y; pw = w; ph = h;
+ // Draw it
draw_current_rect();
}