]> code.delx.au - gnu-emacs/commitdiff
(dumpglyphs): Cast FACE_DEFAULT to (XFontStruct *)
authorRichard M. Stallman <rms@gnu.org>
Fri, 7 Apr 1995 18:33:16 +0000 (18:33 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 7 Apr 1995 18:33:16 +0000 (18:33 +0000)
for comparison with face->font.

src/xterm.c

index 2eec0b4ddaa50d5566c984251858be7cc9c52828..b44fd9b41e6375c616f434a1c9f6aa408d6e68b3 100644 (file)
@@ -555,7 +555,7 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground)
            stippled = 0;
 
            if ((!face->font
-                || (int) face->font == FACE_DEFAULT
+                || face->font == (XFontStruct *) FACE_DEFAULT
                 || face->font == f->display.x->font)
                && face->background == f->display.x->background_pixel
                && face->foreground == f->display.x->foreground_pixel)
@@ -605,7 +605,7 @@ dumpglyphs (f, left, top, gp, n, hl, just_foreground)
              }
          }
 
-       if ((int) font == FACE_DEFAULT)
+       if (font == (XFontStruct *) FACE_DEFAULT)
          font = f->display.x->font;
 
        if (just_foreground)