OSDN Git Service

When calculating the number of columns, round down as is done with the number of...
authorEric Branlund <ebranlund@fastmail.com>
Wed, 18 Mar 2020 06:32:29 +0000 (23:32 -0700)
committerEric Branlund <ebranlund@fastmail.com>
Wed, 18 Mar 2020 06:32:29 +0000 (23:32 -0700)
src/main-cocoa.m

index 0f6b17f..98ea66b 100644 (file)
@@ -2137,7 +2137,7 @@ static __strong NSFont* gDefaultFont = nil;
     CGFloat newRows = floor(
        (contentRect.size.height - (self.borderSize.height * 2.0)) /
        self.tileSize.height);
-    CGFloat newColumns = ceil(
+    CGFloat newColumns = floor(
        (contentRect.size.width - (self.borderSize.width * 2.0)) /
        self.tileSize.width);