Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
022d7cda
Commit
022d7cda
authored
Feb 16, 2015
by
YAMAMOTO Mitsuharu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* xterm.c (x_draw_window_divider): Use x_fill_rectangle instead of XFillRectangle.
parent
335ab266
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
15 deletions
+19
-15
src/ChangeLog
src/ChangeLog
+5
-0
src/xterm.c
src/xterm.c
+14
-15
No files found.
src/ChangeLog
View file @
022d7cda
2015-02-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* xterm.c (x_draw_window_divider): Use x_fill_rectangle instead of
XFillRectangle.
2015-02-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* fringe.c (init_fringe_bitmap) [USE_CAIRO]: Adjust bitmap data for
...
...
src/xterm.c
View file @
022d7cda
...
...
@@ -1101,39 +1101,38 @@ x_draw_window_divider (struct window *w, int x0, int x1, int y0, int y1)
? face_last->foreground
: FRAME_FOREGROUND_PIXEL (f));
Display *display = FRAME_X_DISPLAY (f);
Window window = FRAME_X_WINDOW (f);
if (y1 - y0 > x1 - x0 && x1 - x0 > 2)
/* Vertical. */
{
XSetForeground (display, f->output_data.x->normal_gc, color_first);
XF
ill
R
ectangle (
display, window
, f->output_data.x->normal_gc,
x0, y0, 1, y1 - y0);
x_f
ill
_r
ectangle (
f
, f->output_data.x->normal_gc,
x0, y0, 1, y1 - y0);
XSetForeground (display, f->output_data.x->normal_gc, color);
XF
ill
R
ectangle (
display, window
, f->output_data.x->normal_gc,
x0 + 1, y0, x1 - x0 - 2, y1 - y0);
x_f
ill
_r
ectangle (
f
, f->output_data.x->normal_gc,
x0 + 1, y0, x1 - x0 - 2, y1 - y0);
XSetForeground (display, f->output_data.x->normal_gc, color_last);
XF
ill
R
ectangle (
display, window
, f->output_data.x->normal_gc,
x1 - 1, y0, 1, y1 - y0);
x_f
ill
_r
ectangle (
f
, f->output_data.x->normal_gc,
x1 - 1, y0, 1, y1 - y0);
}
else if (x1 - x0 > y1 - y0 && y1 - y0 > 3)
/* Horizontal. */
{
XSetForeground (display, f->output_data.x->normal_gc, color_first);
XF
ill
R
ectangle (
display, window
, f->output_data.x->normal_gc,
x0, y0, x1 - x0, 1);
x_f
ill
_r
ectangle (
f
, f->output_data.x->normal_gc,
x0, y0, x1 - x0, 1);
XSetForeground (display, f->output_data.x->normal_gc, color);
XF
ill
R
ectangle (
display, window
, f->output_data.x->normal_gc,
x0, y0 + 1, x1 - x0, y1 - y0 - 2);
x_f
ill
_r
ectangle (
f
, f->output_data.x->normal_gc,
x0, y0 + 1, x1 - x0, y1 - y0 - 2);
XSetForeground (display, f->output_data.x->normal_gc, color_last);
XF
ill
R
ectangle (
display, window
, f->output_data.x->normal_gc,
x0, y1 - 1, x1 - x0, 1);
x_f
ill
_r
ectangle (
f
, f->output_data.x->normal_gc,
x0, y1 - 1, x1 - x0, 1);
}
else
{
XSetForeground (display, f->output_data.x->normal_gc, color);
XF
ill
R
ectangle (
display, window
, f->output_data.x->normal_gc,
x0, y0, x1 - x0, y1 - y0);
x_f
ill
_r
ectangle (
f
, f->output_data.x->normal_gc,
x0, y0, x1 - x0, y1 - y0);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment