int getDisplaySettings(int s)
Returns a value according to the used s parameter.
Lets you know the bit depth, resolution and refresh rate of the screen. Especially the refresh rate is useful if you want to display an animation in the preview with the help of setTimerEvent and updatePreview. Because if you draw more frames per second than the refresh rate is able to display, your animation will flicker.
%ffp ForEveryTile: { Info (" %d bit \n %d x %d pixel \n %d Hz", getDisplaySettings(0), getDisplaySettings(1), getDisplaySettings(2), getDisplaySettings(3)); return true; }