-
This wasn't correct. Padding is already accounted for: scale = (width - (pages_per_row - 1) * padding) / (pages_per_row * cell_width) If you add padding on the denominator, you end up with black margins on the sides of the window, which isn't what padding is for (i.e. insert a gap between rendered pages), and defeats the purpose of a "best-fit". Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
f5b02a97