Mercurial > emacs
comparison src/w32term.c @ 85309:3224d6c172a6
(w32_font_is_double_byte, my_create_scrollbar): Make static.
(syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Mon, 15 Oct 2007 00:23:08 +0000 |
parents | b1e94574c694 |
children | 591c29778a30 |
comparison
equal
deleted
inserted
replaced
85308:421d8593b3ca | 85309:3224d6c172a6 |
---|---|
1109 } | 1109 } |
1110 } | 1110 } |
1111 | 1111 |
1112 | 1112 |
1113 /* Determine if a font is double byte. */ | 1113 /* Determine if a font is double byte. */ |
1114 int w32_font_is_double_byte (XFontStruct *font) | 1114 static int |
1115 w32_font_is_double_byte (XFontStruct *font) | |
1115 { | 1116 { |
1116 return font->double_byte_p; | 1117 return font->double_byte_p; |
1117 } | 1118 } |
1118 | 1119 |
1119 | 1120 |
3566 | 3567 |
3567 /************************************************************************ | 3568 /************************************************************************ |
3568 Scroll bars, general | 3569 Scroll bars, general |
3569 ************************************************************************/ | 3570 ************************************************************************/ |
3570 | 3571 |
3571 HWND | 3572 static HWND |
3572 my_create_scrollbar (f, bar) | 3573 my_create_scrollbar (f, bar) |
3573 struct frame * f; | 3574 struct frame * f; |
3574 struct scroll_bar * bar; | 3575 struct scroll_bar * bar; |
3575 { | 3576 { |
3576 return (HWND) SendMessage (FRAME_W32_WINDOW (f), | 3577 return (HWND) SendMessage (FRAME_W32_WINDOW (f), |
4180 | 4181 |
4181 EXPECTED is nonzero if the caller knows input is available. | 4182 EXPECTED is nonzero if the caller knows input is available. |
4182 | 4183 |
4183 Some of these messages are reposted back to the message queue since the | 4184 Some of these messages are reposted back to the message queue since the |
4184 system calls the windows proc directly in a context where we cannot return | 4185 system calls the windows proc directly in a context where we cannot return |
4185 the data nor can we guarantee the state we are in. So if we dispatch them | 4186 the data nor can we guarantee the state we are in. So if we dispatch them |
4186 we will get into an infinite loop. To prevent this from ever happening we | 4187 we will get into an infinite loop. To prevent this from ever happening we |
4187 will set a variable to indicate we are in the read_socket call and indicate | 4188 will set a variable to indicate we are in the read_socket call and indicate |
4188 which message we are processing since the windows proc gets called | 4189 which message we are processing since the windows proc gets called |
4189 recursively with different messages by the system. | 4190 recursively with different messages by the system. |
4190 */ | 4191 */ |
6169 | 6170 |
6170 } | 6171 } |
6171 | 6172 |
6172 /* Create an xrdb-style database of resources to supercede registry settings. | 6173 /* Create an xrdb-style database of resources to supercede registry settings. |
6173 The database is just a concatenation of C strings, finished by an additional | 6174 The database is just a concatenation of C strings, finished by an additional |
6174 \0. The string are submitted to some basic normalization, so | 6175 \0. The strings are submitted to some basic normalization, so |
6175 | 6176 |
6176 [ *]option[ *]:[ *]value... | 6177 [ *]option[ *]:[ *]value... |
6177 | 6178 |
6178 becomes | 6179 becomes |
6179 | 6180 |
6633 &w32_enable_unicode_output, | 6634 &w32_enable_unicode_output, |
6634 doc: /* Enable the use of Unicode for text output if non-nil. | 6635 doc: /* Enable the use of Unicode for text output if non-nil. |
6635 Unicode output may prevent some third party applications for displaying | 6636 Unicode output may prevent some third party applications for displaying |
6636 Far-East Languages on Windows 95/98 from working properly. | 6637 Far-East Languages on Windows 95/98 from working properly. |
6637 NT uses Unicode internally anyway, so this flag will probably have no | 6638 NT uses Unicode internally anyway, so this flag will probably have no |
6638 affect on NT machines. */); | 6639 effect on NT machines. */); |
6639 w32_enable_unicode_output = 1; | 6640 w32_enable_unicode_output = 1; |
6640 | 6641 |
6641 DEFVAR_BOOL ("w32-use-visible-system-caret", | 6642 DEFVAR_BOOL ("w32-use-visible-system-caret", |
6642 &w32_use_visible_system_caret, | 6643 &w32_use_visible_system_caret, |
6643 doc: /* Flag to make the system caret visible. | 6644 doc: /* Flag to make the system caret visible. |