mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 07:10:00 -06:00
C stupidness
This commit is contained in:
@ -377,6 +377,7 @@ EmuThread::EmuThread(QObject* parent) : QThread(parent)
|
|||||||
|
|
||||||
void EmuThread::updateScreenSettings(bool filter, const WindowInfo& windowInfo, int numScreens, int* screenKind, float* screenMatrix)
|
void EmuThread::updateScreenSettings(bool filter, const WindowInfo& windowInfo, int numScreens, int* screenKind, float* screenMatrix)
|
||||||
{
|
{
|
||||||
|
printf("update screen setting %d\n", filter);
|
||||||
screenSettingsLock.lock();
|
screenSettingsLock.lock();
|
||||||
|
|
||||||
if (lastScreenWidth != windowInfo.surface_width || lastScreenHeight != windowInfo.surface_height)
|
if (lastScreenWidth != windowInfo.surface_width || lastScreenHeight != windowInfo.surface_height)
|
||||||
@ -904,7 +905,7 @@ void EmuThread::drawScreenGL()
|
|||||||
|
|
||||||
screenSettingsLock.lock();
|
screenSettingsLock.lock();
|
||||||
|
|
||||||
GLint filter = filter ? GL_LINEAR : GL_NEAREST;
|
GLint filter = this->filter ? GL_LINEAR : GL_NEAREST;
|
||||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, filter);
|
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, filter);
|
||||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, filter);
|
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, filter);
|
||||||
|
|
||||||
@ -3075,6 +3076,8 @@ void MainWindow::onChangeIntegerScaling(bool checked)
|
|||||||
void MainWindow::onChangeScreenFiltering(bool checked)
|
void MainWindow::onChangeScreenFiltering(bool checked)
|
||||||
{
|
{
|
||||||
Config::ScreenFilter = checked?1:0;
|
Config::ScreenFilter = checked?1:0;
|
||||||
|
|
||||||
|
emit screenLayoutChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::onChangeShowOSD(bool checked)
|
void MainWindow::onChangeShowOSD(bool checked)
|
||||||
|
Reference in New Issue
Block a user