Skip to content

Commit

Permalink
UI.h:
Browse files Browse the repository at this point in the history
* Windows warnings fixes.
  • Loading branch information
razterizer committed Oct 2, 2024
1 parent 022833a commit 6274ef9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UI.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ namespace ui

RC pos { 0, 0 };

auto mid_v = std::round((NR - N)*0.5f) - ((NR - N)%2 == 1)*0.5f;
auto mid_h = std::round((NC - len_max)*0.5f) - ((NC - len_max)%2 == 1)*0.5f;
auto mid_v = static_cast<int>(std::round((NR - N)*0.5f) - ((NR - N)%2 == 1)*0.5f);
auto mid_h = static_cast<int>(std::round((NC - len_max)*0.5f) - ((NC - len_max)%2 == 1)*0.5f);

switch (args.v_align)
{
Expand Down

0 comments on commit 6274ef9

Please sign in to comment.