octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #53056] LineWidth interpreted as pixels, not p


From: Rik
Subject: [Octave-bug-tracker] [bug #53056] LineWidth interpreted as pixels, not points
Date: Mon, 11 Feb 2019 11:28:37 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #53056 (project octave):

                  Status:         Patch Submitted => In Progress            

    _______________________________________________________

Follow-up Comment #10:

I'll fix this *temporarily* with the call to get.  Given that set_linewidth is
called tens of times even for simple plots I think it would be a good idea to
move the overall conversion factor in to a member variable (like
m_devpixratio) that is calculated only once, or when the screen changes.

In that vein, I would also store the single conversion factor so that instead
of two multiplications per call


width = w * points2pixels * m_devpixratio;


there would just be one


width = w * m_linewidth_factor;




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?53056>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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