Skip to content

Commit

Permalink
try and fix build fail on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
realSquidCoder committed Jan 10, 2025
1 parent 484bcfd commit 2b2f208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ static void main_loop(ALLEGRO_DISPLAY * display, ALLEGRO_EVENT_QUEUE *queue, ALL
break;
}
if (ssConfig.autosize_segment) {
ssState.Size.x = (int)ceil(sqrt(2) * (ssState.ScreenW + ssState.ScreenH) / TILEWIDTH );
ssState.Size.y = (int)ceil(sqrt(2) * (ssState.ScreenW + ssState.ScreenH) / TILEWIDTH);
ssState.Size.x = (int)math::ceil(sqrt(2) * (ssState.ScreenW + ssState.ScreenH) / TILEWIDTH );
ssState.Size.y = (int)math::ceil(sqrt(2) * (ssState.ScreenW + ssState.ScreenH) / TILEWIDTH);
}
if(!al_acknowledge_resize(event.display.source)) {
con.printerr("Failed to resize diplay");
Expand Down

0 comments on commit 2b2f208

Please sign in to comment.