ScreenSaver: add get_aspect()

This commit is contained in:
Josh Holtrop committed 2013-12-15 18:09:58 -05:00
1 parent 05ac92c2b8
commit ef7e8107b6
1 file changed
+5
+5
View File
@@ -84,4 +84,9 @@ class ScreenSaver
{
return m_height;
}
public double get_aspect()
{
return cast(double)m_width / cast(double)m_height;
}
}