1
0
Fork 0

include/Spectre/Display/Display.h: Adding getSize()

This commit is contained in:
Henrik Hautakoski 2023-08-02 22:18:33 +02:00
parent f240d14052
commit 60333f6d02
2 changed files with 7 additions and 0 deletions

View file

@ -34,6 +34,8 @@ public :
void setSize(unsigned int width, unsigned int height);
sp::Vector2u getSize() const;
void setCaption(const std::string& title);
const std::string& getCaption() const;

View file

@ -96,6 +96,11 @@ void Display::setSize(unsigned int width, unsigned int height)
m_impl->setSize(width, height);
}
sp::Vector2u Display::getSize() const
{
return m_impl->getSize();
}
void Display::setVideoMode(Mode mode)
{
if (m_fmode == mode) {