emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calculating screen relative X when horizontal scrolling.


From: Eli Zaretskii
Subject: Re: Calculating screen relative X when horizontal scrolling.
Date: Fri, 19 Oct 2018 22:23:34 +0300

> 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;

?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]