Dont allocate an extra line

Need one extra render line for pixel scroll not two
This commit is contained in:
Kovid Goyal 2026-01-08 17:10:18 +05:30
parent fc28e7c03f
commit 3d4746ec37
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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