[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 6ea5b5e1b4: Fix small regression for horizontal scroll bars
From: |
Po Lu |
Subject: |
master 6ea5b5e1b4: Fix small regression for horizontal scroll bars |
Date: |
Sun, 13 Mar 2022 03:30:02 -0400 (EDT) |
branch: master
commit 6ea5b5e1b434eb57c6f476b242761c37b54515c7
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix small regression for horizontal scroll bars
* src/haikuterm.c (haiku_read_socket): Restore previous
horizontal scrollbar code, since the change it was intended for
was never made.
---
src/haikuterm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/haikuterm.c b/src/haikuterm.c
index c98ab13e1a..6f8d2eaac5 100644
--- a/src/haikuterm.c
+++ b/src/haikuterm.c
@@ -3285,8 +3285,8 @@ haiku_read_socket (struct terminal *terminal, struct
input_event *hold_quit)
if (bar->horizontal)
{
- portion = bar->total * ceil ((double) b->position
- / BE_SB_MAX);
+ portion = bar->total * ((float) b->position
+ / BE_SB_MAX);
whole = (bar->total
* ((float) (BE_SB_MAX - bar->page_size)
/ BE_SB_MAX));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 6ea5b5e1b4: Fix small regression for horizontal scroll bars,
Po Lu <=