HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbcee71
)
(smaller_face): Compare font heights with `<' and `>'
author
Gerd Moellmann
<gerd@gnu.org>
Thu, 7 Sep 2000 14:05:23 +0000
(14:05 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Thu, 7 Sep 2000 14:05:23 +0000
(14:05 +0000)
instead of `!='.
src/xfaces.c
patch
|
blob
|
blame
|
history
diff --git
a/src/xfaces.c
b/src/xfaces.c
index
fe28108
..
0f69e75
100644
(file)
--- a/
src/xfaces.c
+++ b/
src/xfaces.c
@@
-5329,7
+5329,8
@@
smaller_face (f, face_id, steps)
new_face = FACE_FROM_ID (f, new_face_id);
/* If height changes, count that as one step. */
- if (FONT_HEIGHT (new_face->font) != last_height)
+ if ((delta < 0 && FONT_HEIGHT (new_face->font) < last_height)
+ || (delta > 0 && FONT_HEIGHT (new_face->font) > last_height))
{
--steps;
last_height = FONT_HEIGHT (new_face->font);