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
2c26ee51
Commit
2c26ee51
authored
Nov 16, 2002
by
Jason Rumney
Browse files
(w32_get_glyph_string_clip_rect): Clip cursor tightly.
parent
c8d88d08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/w32term.c
src/w32term.c
+12
-0
No files found.
src/w32term.c
View file @
2c26ee51
...
...
@@ -3133,6 +3133,18 @@ w32_get_glyph_string_clip_rect (s, r)
r->top = WINDOW_TO_FRAME_PIXEL_Y (s->w, r->top);
/* If drawing the cursor, don't let glyph draw outside its
advertised boundaries. Cleartype does this under some circumstances. */
if (s->hl == DRAW_CURSOR)
{
if (s->x > r->left)
{
r_width -= s->x - r->left;
r->left = s->x;
}
r_width = min (r_width, s->first_glyph->pixel_width);
}
r->bottom = r->top + r_height;
r->right = r->left + r_width;
}
...
...
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