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
d9cd30a6
Commit
d9cd30a6
authored
Jun 19, 2011
by
Davis King
Browse files
Made the initial window sizing nicer.
parent
6088abce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
tools/imglab/src/metadata_editor.cpp
tools/imglab/src/metadata_editor.cpp
+12
-12
No files found.
tools/imglab/src/metadata_editor.cpp
View file @
d9cd30a6
...
...
@@ -297,22 +297,22 @@ load_image_and_set_size(
message_box
(
"Error loading image"
,
e
.
what
());
}
if
(
display
.
width
()
<
img
.
nc
()
||
display
.
height
()
<
img
.
nr
()
)
{
unsigned
long
screen_width
,
screen_height
;
get_display_size
(
screen_width
,
screen_height
);
unsigned
long
needed_width
=
display
.
left
()
+
img
.
nc
()
+
4
;
unsigned
long
needed_height
=
display
.
top
()
+
img
.
nr
()
+
4
;
if
(
needed_width
<
300
)
needed_width
=
300
;
if
(
needed_height
<
300
)
needed_height
=
300
;
if
(
needed_width
+
50
<
screen_width
&&
needed_height
+
50
<
screen_height
)
{
set_size
(
needed_width
,
needed_height
);
}
}
display
.
set_image
(
img
);
}
...
...
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