Skip to content

Commit

Permalink
'fix' warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
qPCR4vir committed Jun 5, 2024
1 parent ccaca80 commit 91f6329
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions source/gui/detail/bedrock_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -742,11 +742,11 @@ namespace detail
unsigned width = static_cast<unsigned>(r->right - r->left) - wd->extra_width;
unsigned height = static_cast<unsigned>(r->bottom - r->top ) - wd->extra_height;

if(wd->max_track_size.width && (wd->max_track_size.width < req_width)) req_width = wd->max_track_size.width;
else if(wd->min_track_size.width && (wd->min_track_size.width > req_width)) req_width = wd->min_track_size.width;
if (wd->max_track_size.width && (wd->max_track_size.width < req_width )) req_width = wd->max_track_size.width;
if (wd->min_track_size.width && (wd->min_track_size.width > req_width )) req_width = wd->min_track_size.width;

if(wd->max_track_size.height && (wd->max_track_size.height < req_height)) req_height = wd->max_track_size.height;
else if(wd->min_track_size.height && (wd->min_track_size.height > req_height)) req_height = wd->min_track_size.height;
if (wd->max_track_size.height && (wd->max_track_size.height < req_height)) req_height = wd->max_track_size.height;
if (wd->min_track_size.height && (wd->min_track_size.height > req_height)) req_height = wd->min_track_size.height;

if(req_width != width)
{
Expand Down
4 changes: 2 additions & 2 deletions source/gui/detail/drawer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ namespace nana
};

drawer::drawer(int dpi)
: data_impl_{ new data_implement },
graphics{ dpi }
: graphics{ dpi },
data_impl_{ new data_implement }
{}

drawer::~drawer()
Expand Down

0 comments on commit 91f6329

Please sign in to comment.