]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix small regression for horizontal scroll bars
authorPo Lu <luangruo@yahoo.com>
Sun, 13 Mar 2022 07:27:24 +0000 (07:27 +0000)
committerPo Lu <luangruo@yahoo.com>
Sun, 13 Mar 2022 07:27:24 +0000 (07:27 +0000)
* src/haikuterm.c (haiku_read_socket): Restore previous
horizontal scrollbar code, since the change it was intended for
was never made.

src/haikuterm.c

index c98ab13e1a90c43c5b97fd4c4a45f1766175cb9a..6f8d2eaac592292500d4c39594e622113929dafe 100644 (file)
@@ -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));