emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/w32term.c,v


From: Jason Rumney
Subject: [Emacs-diffs] Changes to emacs/src/w32term.c,v
Date: Thu, 26 Jun 2008 10:48:31 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Jason Rumney <jasonr>   08/06/26 10:48:29

Index: w32term.c
===================================================================
RCS file: /sources/emacs/emacs/src/w32term.c,v
retrieving revision 1.297
retrieving revision 1.298
diff -u -b -r1.297 -r1.298
--- w32term.c   23 Jun 2008 12:41:46 -0000      1.297
+++ w32term.c   26 Jun 2008 10:48:28 -0000      1.298
@@ -251,8 +251,6 @@
 void x_wm_set_window_state P_ ((struct frame *, int));
 void x_wm_set_icon_pixmap P_ ((struct frame *, int));
 static void w32_initialize P_ ((void));
-static void x_font_min_bounds P_ ((XFontStruct *, int *, int *));
-int x_compute_min_glyph_bounds P_ ((struct frame *));
 static void x_update_end P_ ((struct frame *));
 static void w32_frame_up_to_date P_ ((struct frame *));
 static void w32_set_terminal_modes P_ ((struct terminal *));
@@ -1239,6 +1237,7 @@
      struct glyph_string *s;
 {
   int i, x;
+  struct w32font_info * w32_font;
   HFONT old_font;
 
   /* If first glyph of S has a left box line, start drawing the text
@@ -1259,8 +1258,10 @@
   SetBkColor (s->hdc, s->gc->background);
   SetTextAlign (s->hdc, TA_BASELINE | TA_LEFT);
 
-  if (s->font && FONT_COMPAT (s->font)->hfont)
-    old_font = SelectObject (s->hdc, FONT_COMPAT (s->font)->hfont);
+  w32_font = (struct w32font_info *) s->font;
+
+  if (w32_font && w32_font->hfont)
+    old_font = SelectObject (s->hdc, w32_font->hfont);
 
   /* Draw characters of S as rectangles if S's font could not be
      loaded. */
@@ -1278,7 +1279,6 @@
   else
     {
       int boff = s->font->baseline_offset;
-      struct font *font = s->font;
       int y;
 
       if (s->font->vertical_centering)
@@ -1287,14 +1287,14 @@
       y = s->ybase - boff;
       if (s->for_overlaps
          || (s->background_filled_p && s->hl != DRAW_CURSOR))
-       font->driver->draw (s, 0, s->nchars, x, y, 0);
+       s->font->driver->draw (s, 0, s->nchars, x, y, 0);
       else
-       font->driver->draw (s, 0, s->nchars, x, y, 1);
+       s->font->driver->draw (s, 0, s->nchars, x, y, 1);
       if (s->face->overstrike)
-       font->driver->draw (s, 0, s->nchars, x + 1, y, 0);
+       s->font->driver->draw (s, 0, s->nchars, x + 1, y, 0);
     }
 
-  if (s->font && FONT_COMPAT (s->font)->hfont)
+  if (w32_font && w32_font->hfont)
     SelectObject (s->hdc, old_font);
 }
 
@@ -1306,6 +1306,7 @@
 {
   int i, j, x;
   HFONT old_font;
+  struct w32font_info * w32_font;
 
   /* If first glyph of S has a left box line, start drawing the text
      of S to the right of that box line.  */
@@ -1325,8 +1326,10 @@
   SetBkMode (s->hdc, TRANSPARENT);
   SetTextAlign (s->hdc, TA_BASELINE | TA_LEFT);
 
-  if (s->font && FONT_COMPAT (s->font)->hfont)
-    old_font = SelectObject (s->hdc, FONT_COMPAT (s->font)->hfont);
+  w32_font = (struct w32font_info *) s->font;
+
+  if (w32_font && w32_font->hfont)
+    old_font = SelectObject (s->hdc, w32_font->hfont);
 
   /* Draw a rectangle for the composition if the font for the very
      first character of the composition could not be loaded.  */
@@ -1392,7 +1395,7 @@
        }
     }
 
-  if (s->font && FONT_COMPAT (s->font)->hfont)
+  if (w32_font && w32_font->hfont)
     SelectObject (s->hdc, old_font);
 }
 
@@ -2342,7 +2345,7 @@
 
       /* Draw strike-through.  */
       if (s->face->strike_through_p
-          && !FONT_COMPAT (s->font)->tm.tmStruckOut)
+          && !((struct w32font_info *) s->font)->metrics.tmStruckOut)
         {
           unsigned long h = 1;
           unsigned long dy = (s->height - h) / 2;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]