diff options
| author | Dmitry Antipov | 2013-08-13 19:29:25 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-08-13 19:29:25 +0400 |
| commit | c8ae93b0890e61c5fbc151216d9169968e532f30 (patch) | |
| tree | 537c00d521356f4b18ef6a9f5d10d222c966fcdd /src/xterm.c | |
| parent | 53b64418c20b6288e0e3a589b61db47861a575b6 (diff) | |
| download | emacs-c8ae93b0890e61c5fbc151216d9169968e532f30.tar.gz emacs-c8ae93b0890e61c5fbc151216d9169968e532f30.zip | |
* window.h (WINDOW_FRINGE_EXTENDED_P): New macro.
* nsterm.m (ns_set_vertical_scroll_bar): Use it. Use convenient
bool instead of BOOL.
* w32term.h (struct scroll_bar): Convert fringe_extended_p
from Lisp_Object to bitfield. Adjust comment.
* w32term.c (x_scroll_bar_create): Adjust user.
Use WINDOW_FRINGE_EXTENDED_P and bool for boolean.
* xterm.c (XTset_vertical_scroll_bar): Likewise.
Use bool for boolean.
* xterm.h (struct scroll_bar): Prefer commonly used `unsigned'
to `unsigned int' when defining a bitfield.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/xterm.c b/src/xterm.c index 6f57836c9aa..15ad3bdf851 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -5155,7 +5155,7 @@ XTset_vertical_scroll_bar (struct window *w, int portion, int whole, int positio | |||
| 5155 | int top, height, left, sb_left, width, sb_width; | 5155 | int top, height, left, sb_left, width, sb_width; |
| 5156 | int window_y, window_height; | 5156 | int window_y, window_height; |
| 5157 | #ifdef USE_TOOLKIT_SCROLL_BARS | 5157 | #ifdef USE_TOOLKIT_SCROLL_BARS |
| 5158 | int fringe_extended_p; | 5158 | bool fringe_extended_p; |
| 5159 | #endif | 5159 | #endif |
| 5160 | 5160 | ||
| 5161 | /* Get window dimensions. */ | 5161 | /* Get window dimensions. */ |
| @@ -5188,16 +5188,7 @@ XTset_vertical_scroll_bar (struct window *w, int portion, int whole, int positio | |||
| 5188 | #endif | 5188 | #endif |
| 5189 | 5189 | ||
| 5190 | #ifdef USE_TOOLKIT_SCROLL_BARS | 5190 | #ifdef USE_TOOLKIT_SCROLL_BARS |
| 5191 | if (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT (w)) | 5191 | fringe_extended_p = WINDOW_FRINGE_EXTENDED_P (w); |
| 5192 | fringe_extended_p = (WINDOW_LEFTMOST_P (w) | ||
| 5193 | && WINDOW_LEFT_FRINGE_WIDTH (w) | ||
| 5194 | && (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w) | ||
| 5195 | || WINDOW_LEFT_MARGIN_COLS (w) == 0)); | ||
| 5196 | else | ||
| 5197 | fringe_extended_p = (WINDOW_RIGHTMOST_P (w) | ||
| 5198 | && WINDOW_RIGHT_FRINGE_WIDTH (w) | ||
| 5199 | && (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w) | ||
| 5200 | || WINDOW_RIGHT_MARGIN_COLS (w) == 0)); | ||
| 5201 | #endif | 5192 | #endif |
| 5202 | 5193 | ||
| 5203 | /* Does the scroll bar exist yet? */ | 5194 | /* Does the scroll bar exist yet? */ |