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

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

[Octave-bug-tracker] [bug #49053] figure scaling issue with Qt 5 on macO


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #49053] figure scaling issue with Qt 5 on macOS with Retina / HiDPI scaling
Date: Tue, 20 Feb 2018 13:45:47 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #103, bug #49053 (project octave):

@John:
>> I don't think there is a different opengl_renderer object for each figure,
right?

No (or yes :-), a new renderer object is instantiated on the heap each time a
figure has to be (re)drawn (see e.g.
http://octave.org/doxygen/4.2/de/d86/GLCanvas_8cc_source.html#l00056).
Something like:


opengl_renderer r;
r.set_viewport (...)
r.draw (go);


Since opengl_renderer has no static variables, it starts from fresh each time
a redraw is requested. So the approach I proposed (and that you already tried)
has no reason to not work:


opengl_renderer r;
r.set_viewport (...);
double val = go.get ("__devicePixelRatio__").double_value ();
r.set_devicePixelRatio (val);
r.draw (go);




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49053>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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