1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Fix OSD info in fullscreen mode.

It was broken by commit 156171be.
This commit is contained in:
Sergey Lipskiy 2020-06-21 19:37:59 +07:00
parent 0a755614a0
commit 7b6e304d84

View File

@ -346,7 +346,8 @@ void TextDrawer::drawText(const char *_pText, float _x, float _y) const
gfxContext.setBlending(blend::SRC_ALPHA, blend::ONE_MINUS_SRC_ALPHA);
m_program->activate();
gfxContext.setViewport(0, 0, wnd.getWidth(), wnd.getHeight());
gfxContext.setViewport((wnd.getScreenWidth() - wnd.getWidth()) / 2, (wnd.getScreenHeight() - wnd.getHeight()) / 2 + wnd.getHeightOffset(),
wnd.getWidth(), wnd.getHeight());
gSP.changed |= CHANGED_VIEWPORT;
Context::TexParameters setParams;