[Top][All Lists]

[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):

>> I don't think there is a different opengl_renderer object for each figure,

No (or yes :-), a new renderer object is instantiated on the heap each time a
figure has to be (re)drawn (see e.g.
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:


  Message sent via/by Savannah

reply via email to

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