aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog9
-rw-r--r--src/w32term.c46
2 files changed, 10 insertions, 45 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bde16b646a8..93881e64e37 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12008-07-28 Jason Rumney <jasonr@gnu.org>
2
3 * w32term.c: (w32_enable_unicode_output, cleartype_active): Remove
4 obsolete display options.
5 (x_draw_glyph_string_background): Don't use old cleartype_active
6 workaround.
7 (w32_initialize): Remove cleartype_active initialization.
8 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9
12008-07-28 Andreas Schwab <schwab@suse.de> 102008-07-28 Andreas Schwab <schwab@suse.de>
2 11
3 * lisp.h (init_weak_hash_tables, syms_of_font) 12 * lisp.h (init_weak_hash_tables, syms_of_font)
diff --git a/src/w32term.c b/src/w32term.c
index 4133229e9fd..26473cfdd4a 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -86,8 +86,7 @@ static int any_help_event_p;
86/* Last window where we saw the mouse. Used by mouse-autoselect-window. */ 86/* Last window where we saw the mouse. Used by mouse-autoselect-window. */
87static Lisp_Object last_window; 87static Lisp_Object last_window;
88 88
89/* Non-zero means make use of UNDERLINE_POSITION font properties. 89/* Non-zero means make use of UNDERLINE_POSITION font properties. */
90 (Not yet supported, see TODO in x_draw_glyph_string.) */
91int x_use_underline_position_properties; 90int x_use_underline_position_properties;
92 91
93/* Non-zero means to draw the underline at the same place as the descent line. */ 92/* Non-zero means to draw the underline at the same place as the descent line. */
@@ -168,14 +167,6 @@ int w32_system_caret_x;
168int w32_system_caret_y; 167int w32_system_caret_y;
169int w32_use_visible_system_caret; 168int w32_use_visible_system_caret;
170 169
171/* Flag to enable Unicode output in case users wish to use programs
172 like Twinbridge on '95 rather than installed system level support
173 for Far East languages. */
174int w32_enable_unicode_output;
175
176/* Flag to enable Cleartype hack for font metrics. */
177static int cleartype_active;
178
179DWORD dwWindowsThreadId = 0; 170DWORD dwWindowsThreadId = 0;
180HANDLE hWindowsThread = NULL; 171HANDLE hWindowsThread = NULL;
181DWORD dwMainThreadId = 0; 172DWORD dwMainThreadId = 0;
@@ -1274,7 +1265,6 @@ x_draw_glyph_string_background (s, force_p)
1274 if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width 1265 if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width
1275 || s->font_not_found_p 1266 || s->font_not_found_p
1276 || s->extends_to_end_of_line_p 1267 || s->extends_to_end_of_line_p
1277 || cleartype_active
1278 || force_p) 1268 || force_p)
1279 { 1269 {
1280 x_clear_glyph_string_rect (s, s->x, s->y + box_line_width, 1270 x_clear_glyph_string_rect (s, s->x, s->y + box_line_width,
@@ -6346,9 +6336,6 @@ w32_initialize ()
6346 6336
6347 /* Dynamically link to optional system components. */ 6337 /* Dynamically link to optional system components. */
6348 { 6338 {
6349 UINT smoothing_type;
6350 BOOL smoothing_enabled;
6351
6352 HANDLE user_lib = LoadLibrary ("user32.dll"); 6339 HANDLE user_lib = LoadLibrary ("user32.dll");
6353 6340
6354#define LOAD_PROC(lib, fn) pfn##fn = (void *) GetProcAddress (lib, #fn) 6341#define LOAD_PROC(lib, fn) pfn##fn = (void *) GetProcAddress (lib, #fn)
@@ -6366,28 +6353,6 @@ w32_initialize ()
6366 effectively form the border of the main scroll bar range. */ 6353 effectively form the border of the main scroll bar range. */
6367 vertical_scroll_bar_top_border = vertical_scroll_bar_bottom_border 6354 vertical_scroll_bar_top_border = vertical_scroll_bar_bottom_border
6368 = GetSystemMetrics (SM_CYVSCROLL); 6355 = GetSystemMetrics (SM_CYVSCROLL);
6369
6370 /* Constants that are not always defined by the system headers
6371 since they only exist on certain versions of Windows. */
6372#ifndef SPI_GETFONTSMOOTHING
6373#define SPI_GETFONTSMOOTHING 0x4A
6374#endif
6375#ifndef SPI_GETFONTSMOOTHINGTYPE
6376#define SPI_GETFONTSMOOTHINGTYPE 0x0200A
6377#endif
6378#ifndef FE_FONTSMOOTHINGCLEARTYPE
6379#define FE_FONTSMOOTHINGCLEARTYPE 0x2
6380#endif
6381
6382 /* Determine if Cleartype is in use. Used to enable a hack in
6383 the char metric calculations which adds extra pixels to
6384 compensate for the "sub-pixels" that are not counted by the
6385 system APIs. */
6386 cleartype_active =
6387 SystemParametersInfo (SPI_GETFONTSMOOTHING, 0, &smoothing_enabled, 0)
6388 && smoothing_enabled
6389 && SystemParametersInfo (SPI_GETFONTSMOOTHINGTYPE, 0, &smoothing_type, 0)
6390 && smoothing_type == FE_FONTSMOOTHINGCLEARTYPE;
6391 } 6356 }
6392} 6357}
6393 6358
@@ -6434,15 +6399,6 @@ When nil, the right-alt and left-ctrl key combination is
6434interpreted normally. */); 6399interpreted normally. */);
6435 Vw32_recognize_altgr = Qt; 6400 Vw32_recognize_altgr = Qt;
6436 6401
6437 DEFVAR_BOOL ("w32-enable-unicode-output",
6438 &w32_enable_unicode_output,
6439 doc: /* Enable the use of Unicode for text output if non-nil.
6440Unicode output may prevent some third party applications for displaying
6441Far-East Languages on Windows 95/98 from working properly.
6442NT uses Unicode internally anyway, so this flag will probably have no
6443effect on NT machines. */);
6444 w32_enable_unicode_output = 1;
6445
6446 DEFVAR_BOOL ("w32-use-visible-system-caret", 6402 DEFVAR_BOOL ("w32-use-visible-system-caret",
6447 &w32_use_visible_system_caret, 6403 &w32_use_visible_system_caret,
6448 doc: /* Flag to make the system caret visible. 6404 doc: /* Flag to make the system caret visible.