From c1543954d02bfe9721f5d8cb4b2c454d24239c49 Mon Sep 17 00:00:00 2001 From: VoxelTek <53562267+VoxelTek@users.noreply.github.com> Date: Wed, 18 Jun 2025 11:28:39 +1000 Subject: [PATCH] Remove Draw Cursor checkbox from config tool (#330) --- CONFIG/MainDlg.cpp | 23 +---------------------- CONFIG/MainDlg.h | 1 - CONFIG/res/maindialog.ui | 7 ------- 3 files changed, 1 insertion(+), 30 deletions(-) diff --git a/CONFIG/MainDlg.cpp b/CONFIG/MainDlg.cpp index 19d7d462..a535d658 100644 --- a/CONFIG/MainDlg.cpp +++ b/CONFIG/MainDlg.cpp @@ -58,7 +58,6 @@ CMainDialog::CMainDialog(QWidget* pParent) : QDialog(pParent) ); connect(m_ui->devicesList, &QListWidget::currentRowChanged, this, &CMainDialog::OnList3DevicesSelectionChanged); connect(m_ui->musicCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckboxMusic); - connect(m_ui->drawCursorCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckboxDrawCursor); connect(m_ui->videomemoryCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckbox3DVideoMemory); connect(m_ui->flipVideoMemoryPagesCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckboxFlipVideoMemPages); connect(m_ui->sound3DCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckbox3DSound); @@ -121,10 +120,7 @@ void CMainDialog::OnList3DevicesSelectionChanged(int selected) { LegoDeviceEnumerate* device_enumerator = currentConfigApp->m_device_enumerator; device_enumerator->GetDevice(selected, currentConfigApp->m_driver, currentConfigApp->m_device); - if (currentConfigApp->GetHardwareDeviceColorModel() != D3DCOLOR_NONE) { - m_ui->drawCursorCheckBox->setEnabled(true); - } - else { + if (currentConfigApp->GetHardwareDeviceColorModel() == D3DCOLOR_NONE) { currentConfigApp->m_3d_video_ram = FALSE; currentConfigApp->m_flip_surfaces = FALSE; m_ui->videomemoryCheckBox->setChecked(currentConfigApp->m_3d_video_ram); @@ -159,14 +155,6 @@ void CMainDialog::UpdateInterface() m_ui->videomemoryCheckBox->setChecked(currentConfigApp->m_3d_video_ram); bool full_screen = currentConfigApp->m_full_screen; currentConfigApp->AdjustDisplayBitDepthBasedOnRenderStatus(); - if (currentConfigApp->GetHardwareDeviceColorModel() != D3DCOLOR_NONE) { - m_ui->drawCursorCheckBox->setChecked(true); - } - else { - m_ui->drawCursorCheckBox->setChecked(false); - currentConfigApp->m_draw_cursor = FALSE; - m_ui->drawCursorCheckBox->setEnabled(false); - } if (full_screen) { if (currentConfigApp->m_display_bit_depth == 8) { m_ui->colorPalette256RadioButton->setChecked(true); @@ -183,7 +171,6 @@ void CMainDialog::UpdateInterface() m_ui->colorPalette256RadioButton->setEnabled(full_screen && currentConfigApp->GetConditionalDeviceRenderBitDepth()); m_ui->colorPalette16bitRadioButton->setEnabled(full_screen && currentConfigApp->GetDeviceRenderBitStatus()); m_ui->sound3DCheckBox->setChecked(currentConfigApp->m_3d_sound); - m_ui->drawCursorCheckBox->setChecked(currentConfigApp->m_draw_cursor); switch (currentConfigApp->m_model_quality) { case 1: m_ui->modelQualityFastRadioButton->setChecked(true); @@ -315,14 +302,6 @@ void CMainDialog::SwitchToAdvanced(bool p_advanced) m_advanced = p_advanced; } -// FUNCTION: CONFIG 0x00404890 -void CMainDialog::OnCheckboxDrawCursor(bool checked) -{ - currentConfigApp->m_draw_cursor = checked; - m_modified = true; - UpdateInterface(); -} - // FUNCTION: CONFIG 0x004048c0 void CMainDialog::OnCheckboxMusic(bool checked) { diff --git a/CONFIG/MainDlg.h b/CONFIG/MainDlg.h index 7c0ea8ed..21158da0 100644 --- a/CONFIG/MainDlg.h +++ b/CONFIG/MainDlg.h @@ -43,7 +43,6 @@ private slots: void OnRadiobuttonTextureLowQuality(bool checked); void OnRadiobuttonTextureHighQuality(bool checked); void OnCheckboxJoystick(bool chedked); - void OnCheckboxDrawCursor(bool checked); void OnCheckboxMusic(bool checked); void OnButtonAdvanced(); void accept() override; diff --git a/CONFIG/res/maindialog.ui b/CONFIG/res/maindialog.ui index 1dfc3052..fadc12f7 100644 --- a/CONFIG/res/maindialog.ui +++ b/CONFIG/res/maindialog.ui @@ -332,13 +332,6 @@ - - - - Draw Cursor - - -