Use an unsigned int rather than a double to store pixel scroll offset

Its an integral number of pixels.
This commit is contained in:
Kovid Goyal
2026-02-15 19:09:15 +05:30
parent a0b1adbda5
commit 823214575b
3 changed files with 7 additions and 8 deletions

View File

@@ -104,9 +104,8 @@ typedef struct ExtraCursors {
typedef struct {
PyObject_HEAD
unsigned int columns, lines, margin_top, margin_bottom, scrolled_by;
unsigned int columns, lines, margin_top, margin_bottom, scrolled_by, pixel_scroll_offset_y;
double pending_scroll_pixels_x, pending_scroll_pixels_y;
double pixel_scroll_offset_y;
CellPixelSize cell_size;
OverlayLine overlay_line;
id_type window_id;