aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2008-06-23 12:41:50 +0000
committerJason Rumney2008-06-23 12:41:50 +0000
commit0b07ad98c5b93cc57cc7a9349eee7a6dbae4e869 (patch)
treeb4ba84958bdaf36df8b1c89bcb4a1fa6e0e5800f /src
parentffbda93a863b687a419b1c6453deae23e8be4829 (diff)
downloademacs-0b07ad98c5b93cc57cc7a9349eee7a6dbae4e869.tar.gz
emacs-0b07ad98c5b93cc57cc7a9349eee7a6dbae4e869.zip
* w32term.c (x_draw_glyph_string_background)
(x_draw_glyph_string): Remove old bdf font code. * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/w32term.c7
-rw-r--r--src/w32term.h9
3 files changed, 8 insertions, 15 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a61e3e4b44a..2a496a41a45 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12008-06-23 Jason Rumney <jasonr@gnu.org>
2
3 * w32term.c (x_draw_glyph_string_background)
4 (x_draw_glyph_string): Remove old bdf font code.
5
6 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
7
12008-06-22 Kenichi Handa <handa@m17n.org> 82008-06-22 Kenichi Handa <handa@m17n.org>
2 9
3 * font.c (font_find_for_lface): Try the adstyle specified in 10 * font.c (font_find_for_lface): Try the adstyle specified in
diff --git a/src/w32term.c b/src/w32term.c
index a5f3ebaae21..770369454ed 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -54,7 +54,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
54#include "keymap.h" 54#include "keymap.h"
55 55
56#include "w32heap.h" 56#include "w32heap.h"
57#include "w32bdf.h"
58#include <shellapi.h> 57#include <shellapi.h>
59 58
60#include "font.h" 59#include "font.h"
@@ -102,8 +101,6 @@ extern void free_frame_menubar ();
102extern int w32_codepage_for_font (char *fontname); 101extern int w32_codepage_for_font (char *fontname);
103extern Cursor w32_load_cursor (LPCTSTR name); 102extern Cursor w32_load_cursor (LPCTSTR name);
104 103
105extern glyph_metric *w32_BDF_TextMetric(bdffont *fontp,
106 unsigned char *text, int dim);
107extern Lisp_Object Vwindow_system; 104extern Lisp_Object Vwindow_system;
108 105
109#define x_any_window_to_frame x_window_to_frame 106#define x_any_window_to_frame x_window_to_frame
@@ -1223,7 +1220,6 @@ x_draw_glyph_string_background (s, force_p)
1223 if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width 1220 if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width
1224 || s->font_not_found_p 1221 || s->font_not_found_p
1225 || s->extends_to_end_of_line_p 1222 || s->extends_to_end_of_line_p
1226 || FONT_COMPAT (s->font)->bdf
1227 || cleartype_active 1223 || cleartype_active
1228 || force_p) 1224 || force_p)
1229 { 1225 {
@@ -2346,8 +2342,7 @@ x_draw_glyph_string (s)
2346 2342
2347 /* Draw strike-through. */ 2343 /* Draw strike-through. */
2348 if (s->face->strike_through_p 2344 if (s->face->strike_through_p
2349 && (FONT_COMPAT (s->font)->bdf 2345 && !FONT_COMPAT (s->font)->tm.tmStruckOut)
2350 || !FONT_COMPAT (s->font)->tm.tmStruckOut))
2351 { 2346 {
2352 unsigned long h = 1; 2347 unsigned long h = 1;
2353 unsigned long dy = (s->height - h) / 2; 2348 unsigned long dy = (s->height - h) / 2;
diff --git a/src/w32term.h b/src/w32term.h
index 6c10b3be6d2..defb3231d5f 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -729,15 +729,6 @@ struct frame * check_x_frame (Lisp_Object);
729EXFUN (Fx_display_color_p, 1); 729EXFUN (Fx_display_color_p, 1);
730EXFUN (Fx_display_grayscale_p, 1); 730EXFUN (Fx_display_grayscale_p, 1);
731 731
732#define FONT_TYPE_FOR_UNIBYTE(font, ch) \
733 ((font)->bdf ? BDF_1D_FONT : ANSI_FONT)
734
735#define FONT_TYPE_FOR_MULTIBYTE(font, ch) \
736 (!(font)->bdf \
737 ? UNICODE_FONT \
738 : ((CHARSET_DIMENSION (CHAR_CHARSET ((ch))) == 1) \
739 ? BDF_1D_FONT : BDF_2D_FONT))
740
741typedef DWORD (WINAPI * ClipboardSequence_Proc) (); 732typedef DWORD (WINAPI * ClipboardSequence_Proc) ();
742typedef BOOL (WINAPI * AppendMenuW_Proc) ( 733typedef BOOL (WINAPI * AppendMenuW_Proc) (
743 IN HMENU, 734 IN HMENU,