aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2007-02-02 10:31:13 +0000
committerJan Djärv2007-02-02 10:31:13 +0000
commit1024f9c0d83dec0b3ee82db54c5b25de23021b02 (patch)
tree2e20ff0d0e6d9a45a299237dc98f37ea9c94ffb4 /src
parent849bb789c8c8863291569284163f7cef2ed57229 (diff)
downloademacs-1024f9c0d83dec0b3ee82db54c5b25de23021b02.tar.gz
emacs-1024f9c0d83dec0b3ee82db54c5b25de23021b02.zip
[!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose): Use
the foreground color of the scroll-bar face when drawing the scroll-bar's border.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xterm.c12
2 files changed, 17 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bfc82e05a5e..7de878297b3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12007-01-29 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> (tiny change)
2
3 * xterm.c [!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose): Use
4 the foreground color of the scroll-bar face when drawing the
5 scroll-bar's border.
6
12007-02-02 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 72007-02-02 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2 8
3 * xterm.c (do_ewmh_fullscreen): Check that what != NULL before 9 * xterm.c (do_ewmh_fullscreen): Check that what != NULL before
diff --git a/src/xterm.c b/src/xterm.c
index 3650f3cc541..cf319b374d9 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5279,6 +5279,11 @@ x_scroll_bar_expose (bar, event)
5279 5279
5280 x_scroll_bar_set_handle (bar, XINT (bar->start), XINT (bar->end), 1); 5280 x_scroll_bar_set_handle (bar, XINT (bar->start), XINT (bar->end), 1);
5281 5281
5282 /* Switch to scroll bar foreground color. */
5283 if (f->output_data.x->scroll_bar_foreground_pixel != -1)
5284 XSetForeground (FRAME_X_DISPLAY (f), gc,
5285 f->output_data.x->scroll_bar_foreground_pixel);
5286
5282 /* Draw a one-pixel border just inside the edges of the scroll bar. */ 5287 /* Draw a one-pixel border just inside the edges of the scroll bar. */
5283 XDrawRectangle (FRAME_X_DISPLAY (f), w, gc, 5288 XDrawRectangle (FRAME_X_DISPLAY (f), w, gc,
5284 5289
@@ -5287,7 +5292,12 @@ x_scroll_bar_expose (bar, event)
5287 XINT (bar->width) - 1 - width_trim - width_trim, 5292 XINT (bar->width) - 1 - width_trim - width_trim,
5288 XINT (bar->height) - 1); 5293 XINT (bar->height) - 1);
5289 5294
5290 UNBLOCK_INPUT; 5295 /* Restore the foreground color of the GC if we changed it above. */
5296 if (f->output_data.x->scroll_bar_foreground_pixel != -1)
5297 XSetForeground (FRAME_X_DISPLAY (f), gc,
5298 f->output_data.x->foreground_pixel);
5299
5300 UNBLOCK_INPUT;
5291 5301
5292} 5302}
5293#endif /* not USE_TOOLKIT_SCROLL_BARS */ 5303#endif /* not USE_TOOLKIT_SCROLL_BARS */