]> git.eshelyaron.com Git - emacs.git/commit
NS: Fix scroll-bar setting code (bug#72331)
authorGerd Möllmann <gerd@gnu.org>
Thu, 8 Aug 2024 06:19:56 +0000 (08:19 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 11 Aug 2024 07:30:57 +0000 (09:30 +0200)
commitcfa248dd90a58f0e783a636b2c7fe877a6c6d7f4
treeca466b4e7199dd65f55a2b208033d9277be4f202
parent331186c72b7432be159519f0ab7a7e58d3b8d03e
NS: Fix scroll-bar setting code (bug#72331)

* src/nsterm.m (ns_set_vertical_scroll_bar): Use
WINDOW_SCROLL_AREA_WIDTH instead of NS_SCROLL_BAR_WIDTH.
(ns_set_horizontal_scroll_bar): Use WINDOW_SCROLL_AREA_HEIGHT
instead of NS_SCROLL_BAR_HEIGHT. Clear area differently if vertical
scroll bars are present.
* src/nsterm.h (NS_SCROLL_BAR_WIDTH, NS_SCROLL_BAR_HEIGHT): Remove.

(cherry picked from commit bd6dfb97ff0d712dc02c0542a51b00ce41022012)
src/nsterm.h
src/nsterm.m