Get the size of the screen displaying the plugin...
-
Its in JUCE as part of Desktop
Obtainable (apparently) like this:
Rectangle<int> r = Desktop::getInstance().getDisplays().getMainDisplay().userArea; int x = r.getWidth(); int y = r.getHeight();
-
-
@d-healey waahhh!!! <--my new proposed design for the t-shirt...
-
@d-healey said in Get the size of the screen displaying the plugin...:
..except........
Engine.getDeviceResolution() is reporting a size of:
Interface: [ 0, 0, 1024, 768 ]
but my screens are
So I'm doing something wrong...or its a bug.
-
@Lindon Reports the same for me. What about if you compile the project?
-
@d-healey same ---
-
There's ya problem
@Christoph-Hart Does this mean it is only for tablets or something?