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:
ac2e97a
)
Moved comment so that it makes more sense.
author
Eric Branlund
<ebranlund@fastmail.com>
Mon, 28 Sep 2020 21:07:52 +0000
(14:07 -0700)
committer
Eric Branlund
<ebranlund@fastmail.com>
Mon, 28 Sep 2020 21:07:52 +0000
(14:07 -0700)
src/main-cocoa.m
patch
|
blob
|
history
diff --git
a/src/main-cocoa.m
b/src/main-cocoa.m
index
f36dcad
..
d9692b2
100644
(file)
--- a/
src/main-cocoa.m
+++ b/
src/main-cocoa.m
@@
-2292,9
+2292,9
@@
static int compare_advances(const void *ap, const void *bp)
/* Pick the center to find the median */
CGFloat medianAdvance = 0;
+ /* In case we have all zero advances for some reason */
if (startIdx < GLYPH_COUNT)
{
- /* In case we have all zero advances for some reason */
medianAdvance = advances[(startIdx + GLYPH_COUNT)/2].width;
}