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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
c83febd7
Commit
c83febd7
authored
Jul 25, 1993
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(redraw_previous_char): New function.
parent
76426794
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
2 deletions
+37
-2
src/xterm.c
src/xterm.c
+37
-2
No files found.
src/xterm.c
View file @
c83febd7
...
...
@@ -271,6 +271,7 @@ extern Cursor XCreateCursor ();
extern
FONT_TYPE
*
XOpenFont
();
static
void
flashback
();
static
void
redraw_previous_char
();
#ifndef HAVE_X11
static
void
dumpqueue
();
...
...
@@ -288,7 +289,7 @@ static int XTclear_end_of_line ();
of the frame being updated, so that the XT... functions do not
need to take a frame as argument. Most of the XT... functions
should never be called except during an update, the only exceptions
being XTcursor_to, XTwrite_
char
and XTreassert_line_highlight. */
being XTcursor_to, XTwrite_
glyphs
and XTreassert_line_highlight. */
extern
int
mouse_track_top
,
mouse_track_left
,
mouse_track_width
;
...
...
@@ -680,7 +681,9 @@ XTclear_end_of_line (first_unused)
CHAR_TO_PIXEL_ROW
(
f
,
curs_y
),
FONT_WIDTH
(
f
->
display
.
x
->
font
)
*
(
first_unused
-
curs_x
),
FONT_HEIGHT
(
f
->
display
.
x
->
font
),
False
);
#if 0
redraw_previous_char (f, curs_x, curs_y);
#endif
#else
/* ! defined (HAVE_X11) */
XPixSet
(
FRAME_X_WINDOW
(
f
),
CHAR_TO_PIXEL_COL
(
f
,
curs_x
),
...
...
@@ -693,6 +696,38 @@ XTclear_end_of_line (first_unused)
UNBLOCK_INPUT
;
}
/* Erase the character (if any) at the position just before X, Y in frame F,
then redraw it and the character before it.
This is necessary when we erase starting at X,
in case the character after X overlaps into the one before X. */
static
void
redraw_previous_char
(
f
,
x
,
y
)
FRAME_PTR
f
;
int
x
,
y
;
{
/* Erase the character before the new ones, in case
what was here before overlaps it.
Reoutput that character, and the previous character
(in case the previous character overlaps it). */
if
(
x
>
0
)
{
int
start_x
=
x
-
2
;
if
(
start_x
<
0
)
start_x
=
0
;
XClearArea
(
x_current_display
,
FRAME_X_WINDOW
(
f
),
CHAR_TO_PIXEL_COL
(
f
,
x
-
1
),
CHAR_TO_PIXEL_ROW
(
f
,
y
),
FONT_WIDTH
(
f
->
display
.
x
->
font
),
FONT_HEIGHT
(
f
->
display
.
x
->
font
),
False
);
dumpglyphs
(
f
,
CHAR_TO_PIXEL_COL
(
f
,
start_x
),
CHAR_TO_PIXEL_ROW
(
f
,
y
),
&
FRAME_CURRENT_GLYPHS
(
f
)
->
glyphs
[
y
][
start_x
],
x
-
start_x
,
highlight
);
}
}
static
XTclear_frame
()
{
...
...
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