mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Dont allocate an extra line
Need one extra render line for pixel scroll not two
This commit is contained in:
parent
fc28e7c03f
commit
3d4746ec37
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ pixel_scroll_enabled_for_render(const Screen *screen) {
|
|||
|
||||
static inline unsigned int
|
||||
render_lines_for_screen(const Screen *screen) {
|
||||
return screen->lines + (pixel_scroll_enabled_for_render(screen) ? 2u : 0u);
|
||||
return screen->lines + (pixel_scroll_enabled_for_render(screen) ? 1u : 0u);
|
||||
}
|
||||
|
||||
static inline float
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue