Stephen McDowell
Stephen McDowell
Cross-ref #347
Are you using [`Screen::pixelRatio()`](http://nanogui.readthedocs.io/en/latest/generated_api/exhale_class_nanogui__Screen.html#_CPPv2NK7nanogui6Screen10pixelRatioEv) (or its equivalent `mPixelRatio` member variable)? You should be able to use it to multiply with [`Widget::mSize`](http://nanogui.readthedocs.io/en/latest/generated_api/exhale_class_nanogui__Widget.html#_CPPv2N7nanogui6Widget5mSizeE), but you may have to deal with `float` vs...
That's unfortunate :/ Out of curiosity, if you manually resize your screen class to scale everything by 2 does it appear as you desire? (by 2 to go from 1920x1080...
Ahhh I see the problem. Mate != Gnome, so even if you set `org.gnome.desktop.interface scaling-factor`, it won't matter because you can't run gnome and mate at the same time. Before...
> Would you mind checking if there is a way to do this on a KDE environment? It's [`kreadconfig`](https://manned.org/kreadconfig/40c5a73d). **However**, [maybe we can just use `xdpyinfo`](http://xmodulo.com/how-to-find-screen-resolution-in-linux-desktop-environment.html)? My understanding is that...
> i don't think the dimensions from `xdpyinfo` really help us here ~~Aren't we just checking the ratio of `width / 1920` and `height / 1080`? I was under the...
Hey @rogerdahl thanks for letting us know, this looks promising. I've been slowly iterating on updating nanogui's build system for modern cmake, it'll be a one-two punch. We've updated every...
Awesome, thanks! I'm hoping to finish it this weekend assuming everything goes according to plan.
You should capture `b` and remove it explicitly: ```cpp b->setCallback([this, b]() { removeChild(b); }); ``` For python you'll need to be more explicit. Untested, but something like this should work...
UhOh. I just added that and tested, and if you do the explicit capture of `b` then you'll get a segfault later. First click removes it, but then if you...