[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calculating screen relative X when horizontal scrolling.
From: |
Keith David Bershatsky |
Subject: |
Re: Calculating screen relative X when horizontal scrolling. |
Date: |
Fri, 19 Oct 2018 13:02:00 -0700 |
Amendment to prior email ...
Instead of: "The first character 'の' which was at a relative_x of 55 in a
(scroll-left 9) situation, is still at a relative_x of 55 in a (scroll-left 10)
situation".
I should have said: "The first character 'の' which was at a relative_x of 44
in a (scroll-left 9) situation, is still at a relative_x of 44 in a
(scroll-left 10) situation".
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> Date: [10-19-2018 12:23:34] <19 Oct 2018 22:23:34 +0300>
> From: Eli Zaretskii <address@hidden>
> To: Keith David Bershatsky <address@hidden>
> CC: address@hidden
> Subject: Re: Calculating screen relative X when horizontal scrolling.
>
> > Date: Wed, 17 Oct 2018 13:43:49 -0700
> > From: Keith David Bershatsky <address@hidden>
> > Cc: address@hidden
> >
> > relative_x = it->current_x - ((window_hscroll_limited (it->w, it->f) *
> > FRAME_COLUMN_WIDTH (it->f))
>
> Can you tell why you don't use the simple approach:
>
> relative_x = it->current_x - it->first_visible_x;
>
> ?
- Calculating screen relative X when horizontal scrolling., Keith David Bershatsky, 2018/10/15
- Re: Calculating screen relative X when horizontal scrolling., Keith David Bershatsky, 2018/10/16
- Re: Calculating screen relative X when horizontal scrolling., Keith David Bershatsky, 2018/10/17
- Re: Calculating screen relative X when horizontal scrolling., Keith David Bershatsky, 2018/10/17
- Re: Calculating screen relative X when horizontal scrolling., Keith David Bershatsky, 2018/10/19
- Re: Calculating screen relative X when horizontal scrolling.,
Keith David Bershatsky <=
- Re: Calculating screen relative X when horizontal scrolling., Keith David Bershatsky, 2018/10/20
- Re: Calculating screen relative X when horizontal scrolling., Keith David Bershatsky, 2018/10/24