diff options
| author | Eli Zaretskii | 2014-08-19 18:08:02 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-08-19 18:08:02 +0300 |
| commit | d470a23c953e41cd64d893a4658d98b96536a013 (patch) | |
| tree | 6d5dd21b0e11ad59af7d76b5ec5dd83885dce3f1 /src | |
| parent | 8de8f9b5cc49d05427b659a705c6fbd08e4f168b (diff) | |
| download | emacs-d470a23c953e41cd64d893a4658d98b96536a013.tar.gz emacs-d470a23c953e41cd64d893a4658d98b96536a013.zip | |
Fix horizontal scroll bar dragging in R2L paragraphs.
src/w32term.c (w32_horizontal_scroll_bar_handle_click): Fix the
second coordinate ('y') reported for dragging the horizontal
scroll bar thumb.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/w32term.c | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0b9729d3833..871d7391c58 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-08-19 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32term.c (w32_horizontal_scroll_bar_handle_click): Fix the | ||
| 4 | second coordinate ('y') reported for dragging the horizontal | ||
| 5 | scroll bar thumb. | ||
| 6 | |||
| 1 | 2014-08-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 7 | 2014-08-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 8 | ||
| 3 | * xdisp.c (erase_phys_cursor): Fix confusion between window-relative | 9 | * xdisp.c (erase_phys_cursor): Fix confusion between window-relative |
diff --git a/src/w32term.c b/src/w32term.c index 4eff5ab4cdd..2772dee6c02 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -4310,7 +4310,10 @@ w32_horizontal_scroll_bar_handle_click (struct scroll_bar *bar, W32Msg *msg, | |||
| 4310 | case SB_THUMBTRACK: | 4310 | case SB_THUMBTRACK: |
| 4311 | case SB_THUMBPOSITION: | 4311 | case SB_THUMBPOSITION: |
| 4312 | if (HORIZONTAL_SCROLL_BAR_LEFT_RANGE (f, bar->width) <= 0xffff) | 4312 | if (HORIZONTAL_SCROLL_BAR_LEFT_RANGE (f, bar->width) <= 0xffff) |
| 4313 | x = HIWORD (msg->msg.wParam); | 4313 | { |
| 4314 | x = HIWORD (msg->msg.wParam); | ||
| 4315 | y = si.nMax - x - si.nPage; | ||
| 4316 | } | ||
| 4314 | bar->dragging = 1; | 4317 | bar->dragging = 1; |
| 4315 | emacs_event->part = scroll_bar_horizontal_handle; | 4318 | emacs_event->part = scroll_bar_horizontal_handle; |
| 4316 | 4319 | ||