diff options
| author | Miles Bader | 2006-08-16 14:08:49 +0000 |
|---|---|---|
| committer | Miles Bader | 2006-08-16 14:08:49 +0000 |
| commit | de20e0ccdb039a2ac27e5bbd3e06ab70c4e7bb65 (patch) | |
| tree | 80243ce02b52cbf7945c614bd213dd63142b861a /src/w32fns.c | |
| parent | 7a5c2a42040b12b037940a067aee6ac6fde01680 (diff) | |
| parent | 5ebdc2990a95cc38b21f772eea4de3ceee149e54 (diff) | |
| download | emacs-de20e0ccdb039a2ac27e5bbd3e06ab70c4e7bb65.tar.gz emacs-de20e0ccdb039a2ac27e5bbd3e06ab70c4e7bb65.zip | |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 382-398)
- Update from CVS
- Update from erc--emacs--22
- Fix ERC bug introduced in last patch
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 123-125)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-101
Diffstat (limited to 'src/w32fns.c')
| -rw-r--r-- | src/w32fns.c | 41 |
1 files changed, 35 insertions, 6 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 9c0198f288d..f0060de7933 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -2067,7 +2067,8 @@ w32_createwindow (f) | |||
| 2067 | { | 2067 | { |
| 2068 | HWND hwnd; | 2068 | HWND hwnd; |
| 2069 | RECT rect; | 2069 | RECT rect; |
| 2070 | Lisp_Object top, left; | 2070 | Lisp_Object top = Qunbound; |
| 2071 | Lisp_Object left = Qunbound; | ||
| 2071 | 2072 | ||
| 2072 | rect.left = rect.top = 0; | 2073 | rect.left = rect.top = 0; |
| 2073 | rect.right = FRAME_PIXEL_WIDTH (f); | 2074 | rect.right = FRAME_PIXEL_WIDTH (f); |
| @@ -2080,13 +2081,41 @@ w32_createwindow (f) | |||
| 2080 | 2081 | ||
| 2081 | if (!hprevinst) | 2082 | if (!hprevinst) |
| 2082 | { | 2083 | { |
| 2084 | Lisp_Object ifa; | ||
| 2085 | |||
| 2083 | w32_init_class (hinst); | 2086 | w32_init_class (hinst); |
| 2087 | |||
| 2088 | /* Handle the -geometry command line option and the geometry | ||
| 2089 | settings in the registry. They are decoded and put into | ||
| 2090 | initial-frame-alist by w32-win.el:x-handle-geometry. */ | ||
| 2091 | ifa = Fsymbol_value (intern ("initial-frame-alist")); | ||
| 2092 | if (CONSP (ifa)) | ||
| 2093 | { | ||
| 2094 | Lisp_Object lt = Fassq (Qleft, ifa); | ||
| 2095 | Lisp_Object tp = Fassq (Qtop, ifa); | ||
| 2096 | |||
| 2097 | if (!NILP (lt)) | ||
| 2098 | { | ||
| 2099 | lt = XCDR (lt); | ||
| 2100 | if (INTEGERP (lt)) | ||
| 2101 | left = lt; | ||
| 2102 | } | ||
| 2103 | if (!NILP (tp)) | ||
| 2104 | { | ||
| 2105 | tp = XCDR (tp); | ||
| 2106 | if (INTEGERP (tp)) | ||
| 2107 | top = tp; | ||
| 2108 | } | ||
| 2109 | } | ||
| 2084 | } | 2110 | } |
| 2085 | 2111 | ||
| 2086 | /* When called with RES_TYPE_NUMBER, w32_get_arg will return zero | 2112 | if (EQ (left, Qunbound) && EQ (top, Qunbound)) |
| 2087 | for anything that is not a number and is not Qunbound. */ | 2113 | { |
| 2088 | left = w32_get_arg (Qnil, Qleft, "left", "Left", RES_TYPE_NUMBER); | 2114 | /* When called with RES_TYPE_NUMBER, w32_get_arg will return zero |
| 2089 | top = w32_get_arg (Qnil, Qtop, "top", "Top", RES_TYPE_NUMBER); | 2115 | for anything that is not a number and is not Qunbound. */ |
| 2116 | left = w32_get_arg (Qnil, Qleft, "left", "Left", RES_TYPE_NUMBER); | ||
| 2117 | top = w32_get_arg (Qnil, Qtop, "top", "Top", RES_TYPE_NUMBER); | ||
| 2118 | } | ||
| 2090 | 2119 | ||
| 2091 | FRAME_W32_WINDOW (f) = hwnd | 2120 | FRAME_W32_WINDOW (f) = hwnd |
| 2092 | = CreateWindow (EMACS_CLASS, | 2121 | = CreateWindow (EMACS_CLASS, |
| @@ -6269,7 +6298,7 @@ w32_query_font (struct frame *f, char *fontname) | |||
| 6269 | 6298 | ||
| 6270 | for (i = 0; i < one_w32_display_info.n_fonts ;i++, pfi++) | 6299 | for (i = 0; i < one_w32_display_info.n_fonts ;i++, pfi++) |
| 6271 | { | 6300 | { |
| 6272 | if (strcmp(pfi->name, fontname) == 0) return pfi; | 6301 | if (stricmp(pfi->name, fontname) == 0) return pfi; |
| 6273 | } | 6302 | } |
| 6274 | 6303 | ||
| 6275 | return NULL; | 6304 | return NULL; |