diff options
| author | Martin Rudalics | 2014-02-04 08:36:58 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2014-02-04 08:36:58 +0100 |
| commit | 764ec9e5f0adaff96b52252eea71eb30ef7cefa1 (patch) | |
| tree | 1aaf762a76e795be19e9a2279db36b496b0d1e15 /src/w32term.h | |
| parent | 6da8227cfa5bc7f428346e78d028a83a385f908f (diff) | |
| download | emacs-764ec9e5f0adaff96b52252eea71eb30ef7cefa1.tar.gz emacs-764ec9e5f0adaff96b52252eea71eb30ef7cefa1.zip | |
Improve window dividers code.
* faces.el (window-divider): New default value. Rewrite
doc-string.
(window-divider-first-pixel, window-divider-last-pixel): New
faces.
* dispextern.h (face_id): Add WINDOW_DIVIDER_FIRST_PIXEL_FACE_ID
and WINDOW_DIVIDER_LAST_PIXEL_FACE_ID.
* w32term.c (w32_draw_window_divider): Handle first and last
pixels specially.
* w32term.h (w32_fill_area_abs): New function.
* xdisp.c (x_draw_right_divider): Don't draw over bottom
divider.
* xfaces.c (realize_basic_faces): Handle new face ids.
* xfns.c (Fx_create_frame): Call x_default_parameter for right
and bottom divider width.
* xterm.c (x_draw_window_divider): Handle first and last pixels
specially.
Diffstat (limited to 'src/w32term.h')
| -rw-r--r-- | src/w32term.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/w32term.h b/src/w32term.h index 5a1ae283137..f85e6bced8b 100644 --- a/src/w32term.h +++ b/src/w32term.h | |||
| @@ -537,6 +537,16 @@ do { \ | |||
| 537 | w32_fill_rect (f,hdc,pix,&rect); \ | 537 | w32_fill_rect (f,hdc,pix,&rect); \ |
| 538 | } while (0) | 538 | } while (0) |
| 539 | 539 | ||
| 540 | #define w32_fill_area_abs(f,hdc,pix,x0,y0,x1,y1) \ | ||
| 541 | do { \ | ||
| 542 | RECT rect; \ | ||
| 543 | rect.left = x0; \ | ||
| 544 | rect.top = y0; \ | ||
| 545 | rect.right = x1; \ | ||
| 546 | rect.bottom = y1; \ | ||
| 547 | w32_fill_rect (f,hdc,pix,&rect); \ | ||
| 548 | } while (0) | ||
| 549 | |||
| 540 | #define w32_clear_rect(f,hdc,lprect) \ | 550 | #define w32_clear_rect(f,hdc,lprect) \ |
| 541 | w32_fill_rect (f, hdc, FRAME_BACKGROUND_PIXEL (f), lprect) | 551 | w32_fill_rect (f, hdc, FRAME_BACKGROUND_PIXEL (f), lprect) |
| 542 | 552 | ||