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
98910caa
Commit
98910caa
authored
Apr 04, 2015
by
Davis King
Browse files
Made the perspective widgets draw lines first.
parent
12f6520c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
dlib/gui_widgets/widgets.cpp
dlib/gui_widgets/widgets.cpp
+6
-7
No files found.
dlib/gui_widgets/widgets.cpp
View file @
98910caa
...
@@ -5802,13 +5802,6 @@ namespace dlib
...
@@ -5802,13 +5802,6 @@ namespace dlib
{
{
rectangle
area
=
rect
.
intersect
(
c
);
rectangle
area
=
rect
.
intersect
(
c
);
fill_rect
(
c
,
area
,
0
);
fill_rect
(
c
,
area
,
0
);
for
(
unsigned
long
i
=
0
;
i
<
overlay_dots
.
size
();
++
i
)
{
point
p
=
tform
(
overlay_dots
[
i
].
p
)
+
rect
.
tl_corner
();
if
(
area
.
contains
(
p
))
assign_pixel
(
c
[
p
.
y
()
-
c
.
top
()][
p
.
x
()
-
c
.
left
()],
overlay_dots
[
i
].
color
);
}
for
(
unsigned
long
i
=
0
;
i
<
overlay_lines
.
size
();
++
i
)
for
(
unsigned
long
i
=
0
;
i
<
overlay_lines
.
size
();
++
i
)
{
{
draw_line
(
c
,
tform
(
overlay_lines
[
i
].
p1
)
+
rect
.
tl_corner
(),
draw_line
(
c
,
tform
(
overlay_lines
[
i
].
p1
)
+
rect
.
tl_corner
(),
...
@@ -5816,6 +5809,12 @@ namespace dlib
...
@@ -5816,6 +5809,12 @@ namespace dlib
overlay_lines
[
i
].
color
,
overlay_lines
[
i
].
color
,
area
);
area
);
}
}
for
(
unsigned
long
i
=
0
;
i
<
overlay_dots
.
size
();
++
i
)
{
point
p
=
tform
(
overlay_dots
[
i
].
p
)
+
rect
.
tl_corner
();
if
(
area
.
contains
(
p
))
assign_pixel
(
c
[
p
.
y
()
-
c
.
top
()][
p
.
x
()
-
c
.
left
()],
overlay_dots
[
i
].
color
);
}
}
}
...
...
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