mirror of https://github.com/stella-emu/stella.git
Oops, forgot this one in the last commit.
This commit is contained in:
parent
dd5a46880e
commit
9d93472298
|
@ -106,9 +106,8 @@ void Dialog::center()
|
||||||
if(_surface)
|
if(_surface)
|
||||||
{
|
{
|
||||||
const GUI::Size& screen = instance().frameBuffer().screenSize();
|
const GUI::Size& screen = instance().frameBuffer().screenSize();
|
||||||
uInt32 x = (screen.w - getWidth()) >> 1;
|
const GUI::Rect& dst = _surface->dstRect();
|
||||||
uInt32 y = (screen.h - getHeight()) >> 1;
|
_surface->setDstPos((screen.w - dst.width()) >> 1, (screen.h - dst.height()) >> 1);
|
||||||
_surface->setDstPos(x, y);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue