diff options
| author | Jason Rumney | 2006-06-08 21:30:12 +0000 |
|---|---|---|
| committer | Jason Rumney | 2006-06-08 21:30:12 +0000 |
| commit | 33e40ce7fbd2c39899b06123e0430921d17e8bb4 (patch) | |
| tree | 32992125fdd322ca743de54fa7b2df16270f26e4 /src | |
| parent | 3e199297c6af86bc8dc7ee36076c9cd8dc28bb8b (diff) | |
| download | emacs-33e40ce7fbd2c39899b06123e0430921d17e8bb4.tar.gz emacs-33e40ce7fbd2c39899b06123e0430921d17e8bb4.zip | |
(w32_initialize) Manually sync 2006-06-05 change from HEAD.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32term.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/w32term.c b/src/w32term.c index 0a7007cc8f4..2cf6cfd7b1d 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -6511,29 +6511,20 @@ w32_initialize () | |||
| 6511 | AttachThreadInput (dwMainThreadId, dwWindowsThreadId, TRUE); | 6511 | AttachThreadInput (dwMainThreadId, dwWindowsThreadId, TRUE); |
| 6512 | #endif | 6512 | #endif |
| 6513 | 6513 | ||
| 6514 | /* Dynamically link to optional system components. */ | 6514 | /* Dynamically link to optional system components. */ |
| 6515 | { | 6515 | { |
| 6516 | HANDLE user_lib = LoadLibrary ("user32.dll"); | ||
| 6517 | HANDLE gdi_lib = LoadLibrary ("gdi32.dll"); | 6516 | HANDLE gdi_lib = LoadLibrary ("gdi32.dll"); |
| 6518 | UINT smoothing_type; | ||
| 6519 | BOOL smoothing_enabled; | ||
| 6520 | 6517 | ||
| 6521 | #define LOAD_PROC(lib, fn) pfn##fn = (void *) GetProcAddress (lib, #fn) | 6518 | #define LOAD_PROC(lib, fn) pfn##fn = (void *) GetProcAddress (lib, #fn) |
| 6522 | 6519 | ||
| 6523 | /* New proportional scroll bar functions. */ | ||
| 6524 | LOAD_PROC (user_lib, SetScrollInfo); | ||
| 6525 | LOAD_PROC (user_lib, GetScrollInfo); | ||
| 6526 | LOAD_PROC (gdi_lib, GetFontUnicodeRanges); | 6520 | LOAD_PROC (gdi_lib, GetFontUnicodeRanges); |
| 6527 | 6521 | ||
| 6528 | #undef LOAD_PROC | 6522 | #undef LOAD_PROC |
| 6529 | 6523 | ||
| 6530 | FreeLibrary (user_lib); | ||
| 6531 | FreeLibrary (gdi_lib); | 6524 | FreeLibrary (gdi_lib); |
| 6532 | 6525 | ||
| 6533 | /* If using proportional scroll bars, ensure handle is at least 5 pixels; | 6526 | /* Ensure scrollbar handle is at least 5 pixels. */ |
| 6534 | otherwise use the fixed height. */ | 6527 | vertical_scroll_bar_min_handle = 5; |
| 6535 | vertical_scroll_bar_min_handle = (pfnSetScrollInfo != NULL) ? 5 : | ||
| 6536 | GetSystemMetrics (SM_CYVTHUMB); | ||
| 6537 | 6528 | ||
| 6538 | /* For either kind of scroll bar, take account of the arrows; these | 6529 | /* For either kind of scroll bar, take account of the arrows; these |
| 6539 | effectively form the border of the main scroll bar range. */ | 6530 | effectively form the border of the main scroll bar range. */ |