OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4511ee
)
When calculating the number of columns, round down as is done with the number of...
author
Eric Branlund
<ebranlund@fastmail.com>
Wed, 18 Mar 2020 06:32:29 +0000
(23:32 -0700)
committer
Eric Branlund
<ebranlund@fastmail.com>
Wed, 18 Mar 2020 06:32:29 +0000
(23:32 -0700)
src/main-cocoa.m
patch
|
blob
|
history
diff --git
a/src/main-cocoa.m
b/src/main-cocoa.m
index
0f6b17f
..
98ea66b
100644
(file)
--- a/
src/main-cocoa.m
+++ b/
src/main-cocoa.m
@@
-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);