The commit was incorrectly backported from accelerated_rendering, and getx was returning window height
while gety was still relying on the framebuffer surface.
This commit is contained in:
Charles Dang 2017-07-27 00:56:33 +11:00
parent d8e2ddc72a
commit 11b2732123

View file

@ -294,12 +294,16 @@ int CVideo::getx() const
return 0;
}
return window->get_size().y;
return window->get_size().x;
}
int CVideo::gety() const
{
return frameBuffer->h;
if(!window) {
return 0;
}
return window->get_size().y;
}
void CVideo::delay(unsigned int milliseconds)