RMG: use RMG-Core's Video functions

This commit is contained in:
Rosalie Wanders committed 2021-11-04 12:49:37 +01:00
1 parent 1e0a50a0b3
commit afdb20cb00
2 files changed
+6 -6

No files matched your search

+4 -4
View File
@@ -1066,9 +1066,9 @@ void MainWindow::on_Action_System_GSButton(void)
void MainWindow::on_Action_Options_FullScreen(void)
{
if (!g_MupenApi.Core.ToggleFullscreen())
if (!CoreToggleFullscreen())
{
this->ui_MessageBox("Error", "Api::Core::ToggleFullscreen Failed", g_MupenApi.Core.GetLastError());
this->ui_MessageBox("Error", "CoreToggleFullscreen() Failed", QString::fromStdString(CoreGetError()));
}
}
@@ -1183,7 +1183,7 @@ void MainWindow::on_VidExt_SetWindowedModeWithRate(int width, int height, int re
this->ui_VidExt_Geometry_Saved = false;
// force 'refresh' the video plugin
g_MupenApi.Core.SetVideoSize(width, height, true);
CoreSetVideoSize(width, height);
}
if (this->isFullScreen())
@@ -1208,7 +1208,7 @@ void MainWindow::on_VidExt_SetFullscreenModeWithRate(int width, int height, int
this->ui_VidExt_Geometry_Saved = true;
// force 'refresh' the video plugin
g_MupenApi.Core.SetVideoSize(width, height, true);
CoreSetVideoSize(width, height);
}
if (!this->isFullScreen())
@@ -1,10 +1,10 @@
#include "OGLWidget.hpp"
#include "../../Globals.hpp"
#include <qnamespace.h>
using namespace UserInterface::Widget;
#include <iostream>
#include <RMG-Core/Core.hpp>
OGLWidget::OGLWidget(QWidget *parent)
{
@@ -69,7 +69,7 @@ void OGLWidget::resizeEvent(QResizeEvent *event)
void OGLWidget::timerEvent(QTimerEvent *event)
{
g_MupenApi.Core.SetVideoSize(this->width, this->height, false);
CoreSetVideoSize(this->width, this->height);
// remove current timer
this->killTimer(this->timerId);