Mercurial > emacs
changeset 31463:628bb2264f46
(smaller_face): Compare font heights with `<' and `>'
instead of `!='.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 07 Sep 2000 14:05:23 +0000 |
parents | 8fa16830e833 |
children | 2efc0e152012 |
files | src/xfaces.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfaces.c Thu Sep 07 13:51:59 2000 +0000 +++ b/src/xfaces.c Thu Sep 07 14:05:23 2000 +0000 @@ -5329,7 +5329,8 @@ 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);