Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
33e40ce7
Commit
33e40ce7
authored
Jun 08, 2006
by
Jason Rumney
Browse files
(w32_initialize) Manually sync 2006-06-05 change from HEAD.
parent
3e199297
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
src/w32term.c
src/w32term.c
+3
-12
No files found.
src/w32term.c
View file @
33e40ce7
...
...
@@ -6511,29 +6511,20 @@ w32_initialize ()
AttachThreadInput
(
dwMainThreadId
,
dwWindowsThreadId
,
TRUE
);
#endif
/* Dynamically link to optional system components. */
/* Dynamically link to optional system components.
*/
{
HANDLE user_lib = LoadLibrary ("user32.dll");
HANDLE
gdi_lib
=
LoadLibrary
(
"gdi32.dll"
);
UINT smoothing_type;
BOOL smoothing_enabled;
#define LOAD_PROC(lib, fn) pfn##fn = (void *) GetProcAddress (lib, #fn)
/* New proportional scroll bar functions. */
LOAD_PROC (user_lib, SetScrollInfo);
LOAD_PROC (user_lib, GetScrollInfo);
LOAD_PROC
(
gdi_lib
,
GetFontUnicodeRanges
);
#undef LOAD_PROC
FreeLibrary (user_lib);
FreeLibrary
(
gdi_lib
);
/* If using proportional scroll bars, ensure handle is at least 5 pixels;
otherwise use the fixed height. */
vertical_scroll_bar_min_handle = (pfnSetScrollInfo != NULL) ? 5 :
GetSystemMetrics (SM_CYVTHUMB);
/* Ensure scrollbar handle is at least 5 pixels. */
vertical_scroll_bar_min_handle
=
5
;
/* For either kind of scroll bar, take account of the arrows; these
effectively form the border of the main scroll bar range. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment