Mercurial > emacs
comparison src/xfaces.c @ 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 | 8797df6a9fa2 |
children | 5ef4cd475781 |
comparison
equal
deleted
inserted
replaced
31462:8fa16830e833 | 31463:628bb2264f46 |
---|---|
5327 attrs[LFACE_HEIGHT_INDEX] = make_number (pt); | 5327 attrs[LFACE_HEIGHT_INDEX] = make_number (pt); |
5328 new_face_id = lookup_face (f, attrs, 0, NULL); | 5328 new_face_id = lookup_face (f, attrs, 0, NULL); |
5329 new_face = FACE_FROM_ID (f, new_face_id); | 5329 new_face = FACE_FROM_ID (f, new_face_id); |
5330 | 5330 |
5331 /* If height changes, count that as one step. */ | 5331 /* If height changes, count that as one step. */ |
5332 if (FONT_HEIGHT (new_face->font) != last_height) | 5332 if ((delta < 0 && FONT_HEIGHT (new_face->font) < last_height) |
5333 || (delta > 0 && FONT_HEIGHT (new_face->font) > last_height)) | |
5333 { | 5334 { |
5334 --steps; | 5335 --steps; |
5335 last_height = FONT_HEIGHT (new_face->font); | 5336 last_height = FONT_HEIGHT (new_face->font); |
5336 last_pt = pt; | 5337 last_pt = pt; |
5337 } | 5338 } |