The current way to get the rotation by using the _displayrotate field from _getconfig will not work if _display_hdmirotate or _display_lcdrotate is used in /boot/config.txt.
The correct rotation info is already contained in modeInfo.transform and be used from there.
The current way to get the rotation by using the _displayrotate field from _getconfig will not work if _display_hdmirotate or _display_lcdrotate is used in /boot/config.txt. The correct rotation info is already contained in modeInfo.transform and be used from there.