Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
df3bd29d
Commit
df3bd29d
authored
Mar 29, 2002
by
Jason Rumney
Browse files
(w32_draw_relief_rect): Fix calculations of line lengths.
parent
b28b7aa9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
src/ChangeLog
src/ChangeLog
+4
-0
src/w32term.c
src/w32term.c
+4
-4
No files found.
src/ChangeLog
View file @
df3bd29d
2002-03-29 Jason Rumney <jasonr@gnu.org>
* w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
* Makefile.in (lread.o): Depend on coding.h.
* Makefile.in (lread.o): Depend on coding.h.
...
...
src/w32term.c
View file @
df3bd29d
...
@@ -3728,14 +3728,14 @@ w32_draw_relief_rect (f, left_x, top_y, right_x, bottom_y, width,
...
@@ -3728,14 +3728,14 @@ w32_draw_relief_rect (f, left_x, top_y, right_x, bottom_y, width,
for (i = 0; i < width; ++i)
for (i = 0; i < width; ++i)
w32_fill_area (f, hdc, gc.foreground,
w32_fill_area (f, hdc, gc.foreground,
left_x + i * left_p, top_y + i,
left_x + i * left_p, top_y + i,
(
right_x
+ 1 - i * right_p) -
(left_
x
+
i * lef
t_p) + 1, 1);
right_x
- left_x - i *
(left_
p
+
righ
t_p
) + 1, 1);
/* Left. */
/* Left. */
if (left_p)
if (left_p)
for (i = 0; i < width; ++i)
for (i = 0; i < width; ++i)
w32_fill_area (f, hdc, gc.foreground,
w32_fill_area (f, hdc, gc.foreground,
left_x + i, top_y + i, 1,
left_x + i, top_y + i, 1,
(
bottom_y -
i) - (
top_y
+
i
)
+
2
);
bottom_y - top_y
- 2 *
i +
1
);
if (raised_p)
if (raised_p)
gc.foreground = f->output_data.w32->black_relief.gc->foreground;
gc.foreground = f->output_data.w32->black_relief.gc->foreground;
...
@@ -3746,14 +3746,14 @@ w32_draw_relief_rect (f, left_x, top_y, right_x, bottom_y, width,
...
@@ -3746,14 +3746,14 @@ w32_draw_relief_rect (f, left_x, top_y, right_x, bottom_y, width,
for (i = 0; i < width; ++i)
for (i = 0; i < width; ++i)
w32_fill_area (f, hdc, gc.foreground,
w32_fill_area (f, hdc, gc.foreground,
left_x + i * left_p, bottom_y - i,
left_x + i * left_p, bottom_y - i,
(
right_x -
i * right_p) - (
left_x
+
i * left_p) +
2
, 1);
right_x - left_x
-
i *
(
left_p
+ right_p
) +
1
, 1);
/* Right. */
/* Right. */
if (right_p)
if (right_p)
for (i = 0; i < width; ++i)
for (i = 0; i < width; ++i)
w32_fill_area (f, hdc, gc.foreground,
w32_fill_area (f, hdc, gc.foreground,
right_x - i, top_y + i + 1, 1,
right_x - i, top_y + i + 1, 1,
(
bottom_y -
i) - (top_y + i)
);
bottom_y -
top_y - 2 * i - 1
);
w32_set_clip_rectangle (hdc, NULL);
w32_set_clip_rectangle (hdc, NULL);
...
...
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