Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
78006f27
Commit
78006f27
authored
Sep 01, 2012
by
Davis King
Browse files
Fixed some minor bugs in the image_display part labeling behavior.
parent
a169599c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
dlib/gui_widgets/widgets.cpp
dlib/gui_widgets/widgets.cpp
+9
-1
No files found.
dlib/gui_widgets/widgets.cpp
View file @
78006f27
...
...
@@ -5732,6 +5732,9 @@ namespace dlib
overlay_rects
[
selected_rect
].
parts
[
part_name
]
=
c1
;
parent
.
invalidate_rectangle
(
rect
);
if
(
event_handler
.
is_set
())
event_handler
();
}
// ----------------------------------------------------------------------------------------
...
...
@@ -5927,10 +5930,15 @@ namespace dlib
{
rectangle
temp
=
get_rect_on_screen
(
centered_rect
(
itr
->
second
,
part_width
,
part_width
));
if
(
rect_is_selected
&&
selected_part_name
.
size
()
!=
0
&&
selected_part_name
==
itr
->
first
)
if
(
rect_is_selected
&&
selected_rect
==
i
&&
selected_part_name
.
size
()
!=
0
&&
selected_part_name
==
itr
->
first
)
{
draw_circle
(
c
,
center
(
temp
),
temp
.
width
()
/
2
,
invert_pixel
(
overlay_rects
[
i
].
color
),
area
);
}
else
{
draw_circle
(
c
,
center
(
temp
),
temp
.
width
()
/
2
,
overlay_rects
[
i
].
color
,
area
);
}
// make a rectangle that is at the spot we want to draw our string
rectangle
r
((
temp
.
br_corner
()
+
temp
.
bl_corner
())
/
2
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment