Skip to content

Commit

Permalink
Fixed some sections showing
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Oct 6, 2020
1 parent 7135927 commit 4cbd365
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/dialogs/outro.cpp
Expand Up @@ -54,11 +54,11 @@ outro::outro(const game_classification& info)
continue;
}

// Split the names into chunks of 5
static const unsigned chunk_size = 5;
// Split the names into chunks of 5. Use float for proper ceil function!
static const float chunk_size = 5.0;

const unsigned num_names = about.names.size();
const unsigned num_chunks = std::max<unsigned>(1, std::ceil(num_names / chunk_size));
const unsigned num_chunks = std::ceil(num_names / chunk_size);

for(std::size_t i = 0; i < num_chunks; ++i) {
std::stringstream ss;
Expand Down

0 comments on commit 4cbd365

Please sign in to comment.