mirror of https://github.com/davisking/dlib.git
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.
This commit is contained in:
parent
d1295d13c8
commit
af0cf84f79
|
@ -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)));
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue