Update screen size immediately in Qt.

This commit is contained in:
Unknown W. Brackets 2014-02-15 02:03:17 -08:00
parent 2459f4e351
commit 958786cb36
2 changed files with 7 additions and 1 deletions

View File

@ -506,7 +506,11 @@ void NativeRender()
}
void NativeResized() {
// We may need to do something here at some point.
if (uiContext) {
// Modifying the bounds here can be used to "inset" the whole image to gain borders for TV overscan etc.
// The UI now supports any offset but not the EmuScreen yet.
uiContext->SetBounds(Bounds(0, 0, dp_xres, dp_yres));
}
}
void NativeMessageReceived(const char *message, const char *value)

View File

@ -383,6 +383,8 @@ void MainWindow::SetZoom(int zoom) {
emugl->setFixedSize(480 * zoom, 272 * zoom);
setFixedSize(sizeHint());
UpdateScreenScale(480 * zoom, 272 * zoom);
if (gpu)
gpu->Resized();
}