ScreenSaver: add get_aspect()
This commit is contained in:
parent
05ac92c2b8
commit
ef7e8107b6
@ -84,4 +84,9 @@ class ScreenSaver
|
|||||||
{
|
{
|
||||||
return m_height;
|
return m_height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public double get_aspect()
|
||||||
|
{
|
||||||
|
return cast(double)m_width / cast(double)m_height;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user