Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
694a986e
Commit
694a986e
authored
1 year ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Resolve some MSVC warnings
parent
5ea13a92
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!455
Update branch with changes from master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/conio/bitmap_con.c
+5
-3
5 additions, 3 deletions
src/conio/bitmap_con.c
with
5 additions
and
3 deletions
src/conio/bitmap_con.c
+
5
−
3
View file @
694a986e
...
@@ -1726,7 +1726,7 @@ bitmap_double_mult_inside(int maxwidth, int maxheight)
...
@@ -1726,7 +1726,7 @@ bitmap_double_mult_inside(int maxwidth, int maxheight)
int
int
bitmap_largest_mult_inside
(
int
maxwidth
,
int
maxheight
)
bitmap_largest_mult_inside
(
int
maxwidth
,
int
maxheight
)
{
{
return
bitmap_double_mult_inside
(
maxwidth
,
maxheight
);
return
(
int
)
bitmap_double_mult_inside
(
maxwidth
,
maxheight
);
}
}
// Must be called with vstatlock
// Must be called with vstatlock
...
@@ -1736,8 +1736,10 @@ bitmap_get_scaled_win_size(double scale, int *w, int *h, int maxwidth, int maxhe
...
@@ -1736,8 +1736,10 @@ bitmap_get_scaled_win_size(double scale, int *w, int *h, int maxwidth, int maxhe
bool
wc
=
bitmap_width_controls
();
bool
wc
=
bitmap_width_controls
();
double
max
;
double
max
;
if
(
maxwidth
==
0
&&
maxheight
==
0
)
if
(
maxwidth
==
0
&&
maxheight
==
0
)
{
return
bitmap_get_scaled_win_size_nomax
(
scale
,
w
,
h
);
bitmap_get_scaled_win_size_nomax
(
scale
,
w
,
h
);
return
;
}
if
(
maxwidth
<
vstat
.
scrnwidth
)
if
(
maxwidth
<
vstat
.
scrnwidth
)
maxwidth
=
vstat
.
scrnwidth
;
maxwidth
=
vstat
.
scrnwidth
;
if
(
maxheight
<
vstat
.
scrnheight
)
if
(
maxheight
<
vstat
.
scrnheight
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment