Commit af0cf84f authored by Davis King's avatar Davis King

Fixed a bug in the image_window and image_display GUI tools which caused them

to not redraw overlay lines correctly in certain cases involving non-default
zoom levels.
parent d1295d13
......@@ -5794,10 +5794,8 @@ namespace dlib
// push this new overlay into our overlay vector
overlay_lines.push_back(overlay);
const point origin(total_rect().tl_corner());
// make the parent window redraw us now that we changed the overlay
parent.invalidate_rectangle(rectangle(overlay.p1+origin, overlay.p2+origin));
parent.invalidate_rectangle(get_rect_on_screen(rectangle(overlay.p1, overlay.p2)));
}
// ----------------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment