From 47bf422e42762d301c85d9fa44351db7753f3e19 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 18 Aug 2024 14:41:50 +0200 Subject: Ducumentation fix for previous commit --- src/fl_overlay.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.3