OPENGL: Fix GUI centering when using Fit to window (4:3) mode
This commit is contained in:
parent
ea53202de9
commit
1489f2ed0f
1 changed files with 3 additions and 1 deletions
|
@ -510,8 +510,10 @@ void OpenGLGraphicsManager::updateScreen() {
|
|||
|
||||
// Second step: Draw the overlay if visible.
|
||||
if (_overlayVisible) {
|
||||
int dstX = (_windowWidth - _overlayDrawRect.width()) / 2;
|
||||
int dstY = (_windowHeight - _overlayDrawRect.height()) / 2;
|
||||
_backBuffer.enableBlend(Framebuffer::kBlendModeTraditionalTransparency);
|
||||
g_context.getActivePipeline()->drawTexture(_overlay->getGLTexture(), 0, 0, _overlayDrawRect.width(), _overlayDrawRect.height());
|
||||
g_context.getActivePipeline()->drawTexture(_overlay->getGLTexture(), dstX, dstY, _overlayDrawRect.width(), _overlayDrawRect.height());
|
||||
}
|
||||
|
||||
// Third step: Draw the cursor if visible.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue