diff options
| -rw-r--r-- | src/w32term.c | 14 | ||||
| -rw-r--r-- | src/w32term.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/w32term.c b/src/w32term.c index 5a11e2a871a..e8d66c9e5a1 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -257,7 +257,7 @@ XChangeGC (void *ignore, XGCValues *gc, unsigned long mask, | |||
| 257 | } | 257 | } |
| 258 | 258 | ||
| 259 | XGCValues * | 259 | XGCValues * |
| 260 | XCreateGC (void *ignore, Window window, unsigned long mask, XGCValues *xgcv) | 260 | XCreateGC (void *ignore, HWND wignore, unsigned long mask, XGCValues *xgcv) |
| 261 | { | 261 | { |
| 262 | XGCValues *gc = xzalloc (sizeof (XGCValues)); | 262 | XGCValues *gc = xzalloc (sizeof (XGCValues)); |
| 263 | 263 | ||
| @@ -974,7 +974,7 @@ x_set_cursor_gc (struct glyph_string *s) | |||
| 974 | mask, &xgcv); | 974 | mask, &xgcv); |
| 975 | else | 975 | else |
| 976 | FRAME_DISPLAY_INFO (s->f)->scratch_cursor_gc | 976 | FRAME_DISPLAY_INFO (s->f)->scratch_cursor_gc |
| 977 | = XCreateGC (NULL, s->window, mask, &xgcv); | 977 | = XCreateGC (NULL, FRAME_W32_WINDOW (s->f), mask, &xgcv); |
| 978 | 978 | ||
| 979 | s->gc = FRAME_DISPLAY_INFO (s->f)->scratch_cursor_gc; | 979 | s->gc = FRAME_DISPLAY_INFO (s->f)->scratch_cursor_gc; |
| 980 | } | 980 | } |
| @@ -1023,7 +1023,7 @@ x_set_mouse_face_gc (struct glyph_string *s) | |||
| 1023 | mask, &xgcv); | 1023 | mask, &xgcv); |
| 1024 | else | 1024 | else |
| 1025 | FRAME_DISPLAY_INFO (s->f)->scratch_cursor_gc | 1025 | FRAME_DISPLAY_INFO (s->f)->scratch_cursor_gc |
| 1026 | = XCreateGC (NULL, s->window, mask, &xgcv); | 1026 | = XCreateGC (NULL, FRAME_W32_WINDOW (s->f), mask, &xgcv); |
| 1027 | 1027 | ||
| 1028 | s->gc = FRAME_DISPLAY_INFO (s->f)->scratch_cursor_gc; | 1028 | s->gc = FRAME_DISPLAY_INFO (s->f)->scratch_cursor_gc; |
| 1029 | } | 1029 | } |
| @@ -1204,7 +1204,7 @@ x_draw_glyph_string_background (struct glyph_string *s, bool force_p) | |||
| 1204 | { | 1204 | { |
| 1205 | /* Fill background with a stipple pattern. */ | 1205 | /* Fill background with a stipple pattern. */ |
| 1206 | XSetFillStyle (s->display, s->gc, FillOpaqueStippled); | 1206 | XSetFillStyle (s->display, s->gc, FillOpaqueStippled); |
| 1207 | XFillRectangle (s->display, s->window, s->gc, s->x, | 1207 | XFillRectangle (s->display, FRAME_W32_WINDOW (s->f), s->gc, s->x, |
| 1208 | s->y + box_line_width, | 1208 | s->y + box_line_width, |
| 1209 | s->background_width, | 1209 | s->background_width, |
| 1210 | s->height - 2 * box_line_width); | 1210 | s->height - 2 * box_line_width); |
| @@ -2061,7 +2061,7 @@ x_draw_glyph_string_bg_rect (struct glyph_string *s, int x, int y, int w, int h) | |||
| 2061 | { | 2061 | { |
| 2062 | /* Fill background with a stipple pattern. */ | 2062 | /* Fill background with a stipple pattern. */ |
| 2063 | XSetFillStyle (s->display, s->gc, FillOpaqueStippled); | 2063 | XSetFillStyle (s->display, s->gc, FillOpaqueStippled); |
| 2064 | XFillRectangle (s->display, s->window, s->gc, x, y, w, h); | 2064 | XFillRectangle (s->display, FRAME_W32_WINDOW (s->f), s->gc, x, y, w, h); |
| 2065 | XSetFillStyle (s->display, s->gc, FillSolid); | 2065 | XSetFillStyle (s->display, s->gc, FillSolid); |
| 2066 | } | 2066 | } |
| 2067 | else | 2067 | else |
| @@ -2133,7 +2133,7 @@ x_draw_image_glyph_string (struct glyph_string *s) | |||
| 2133 | int depth = DefaultDepthOfScreen (screen); | 2133 | int depth = DefaultDepthOfScreen (screen); |
| 2134 | 2134 | ||
| 2135 | /* Create a pixmap as large as the glyph string. */ | 2135 | /* Create a pixmap as large as the glyph string. */ |
| 2136 | pixmap = XCreatePixmap (s->display, s->window, | 2136 | pixmap = XCreatePixmap (s->display, FRAME_W32_WINDOW (s->f), |
| 2137 | s->background_width, | 2137 | s->background_width, |
| 2138 | s->height, depth); | 2138 | s->height, depth); |
| 2139 | 2139 | ||
| @@ -2275,7 +2275,7 @@ x_draw_stretch_glyph_string (struct glyph_string *s) | |||
| 2275 | { | 2275 | { |
| 2276 | /* Fill background with a stipple pattern. */ | 2276 | /* Fill background with a stipple pattern. */ |
| 2277 | XSetFillStyle (s->display, gc, FillOpaqueStippled); | 2277 | XSetFillStyle (s->display, gc, FillOpaqueStippled); |
| 2278 | XFillRectangle (s->display, s->window, gc, x, y, w, h); | 2278 | XFillRectangle (s->display, FRAME_W32_WINDOW (s->f), gc, x, y, w, h); |
| 2279 | XSetFillStyle (s->display, gc, FillSolid); | 2279 | XSetFillStyle (s->display, gc, FillSolid); |
| 2280 | } | 2280 | } |
| 2281 | else | 2281 | else |
diff --git a/src/w32term.h b/src/w32term.h index 320477073a5..e29e99357e8 100644 --- a/src/w32term.h +++ b/src/w32term.h | |||
| @@ -790,7 +790,7 @@ typedef struct tagTRACKMOUSEEVENT | |||
| 790 | struct image; | 790 | struct image; |
| 791 | struct face; | 791 | struct face; |
| 792 | 792 | ||
| 793 | XGCValues *XCreateGC (void *, Window, unsigned long, XGCValues *); | 793 | XGCValues *XCreateGC (void *, HWND, unsigned long, XGCValues *); |
| 794 | 794 | ||
| 795 | typedef DWORD (WINAPI * ClipboardSequence_Proc) (void); | 795 | typedef DWORD (WINAPI * ClipboardSequence_Proc) (void); |
| 796 | typedef BOOL (WINAPI * AppendMenuW_Proc) ( | 796 | typedef BOOL (WINAPI * AppendMenuW_Proc) ( |