mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Update screen size immediately in Qt.
This commit is contained in:
parent
2459f4e351
commit
958786cb36
@ -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)
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user