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
d6c747a4
Commit
d6c747a4
authored
Jul 27, 2001
by
Gerd Moellmann
Browse files
(shift_glyph_matrix, blank_row): Fix computation
of row's visible height.
parent
98b8a90f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
src/dispnew.c
src/dispnew.c
+9
-11
No files found.
src/dispnew.c
View file @
d6c747a4
...
...
@@ -994,13 +994,12 @@ shift_glyph_matrix (w, matrix, start, end, dy)
struct
glyph_row
*
row
=
&
matrix
->
rows
[
start
];
row
->
y
+=
dy
;
row
->
visible_height
=
row
->
height
;
if
(
row
->
y
<
min_y
)
row->visible_height = row->height - (min_y - row->y);
else if (row->y + row->height > max_y)
row->visible_height = row->height - (row->y + row->height - max_y);
else
row->visible_height = row->height;
row
->
visible_height
-=
min_y
-
row
->
y
;
if
(
row
->
y
+
row
->
height
>
max_y
)
row
->
visible_height
-=
row
->
y
+
row
->
height
-
max_y
;
}
}
...
...
@@ -1154,13 +1153,12 @@ blank_row (w, row, y)
row
->
y
=
y
;
row
->
ascent
=
row
->
phys_ascent
=
0
;
row
->
height
=
row
->
phys_height
=
CANON_Y_UNIT
(
XFRAME
(
w
->
frame
));
row
->
visible_height
=
row
->
height
;
if
(
row
->
y
<
min_y
)
row->visible_height = row->height - (min_y - row->y);
else if (row->y + row->height > max_y)
row->visible_height = row->height - (row->y + row->height - max_y);
else
row->visible_height = row->height;
row
->
visible_height
-=
min_y
-
row
->
y
;
if
(
row
->
y
+
row
->
height
>
max_y
)
row
->
visible_height
-=
row
->
y
+
row
->
height
-
max_y
;
row
->
enabled_p
=
1
;
}
...
...
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