Fixup b4990801
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:
parent
d8e2ddc72a
commit
11b2732123
1 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue