mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-20 06:01:16 +00:00
Remove Draw Cursor checkbox from config tool (#330)
This commit is contained in:
parent
da825d42d4
commit
c1543954d0
@ -58,7 +58,6 @@ CMainDialog::CMainDialog(QWidget* pParent) : QDialog(pParent)
|
|||||||
);
|
);
|
||||||
connect(m_ui->devicesList, &QListWidget::currentRowChanged, this, &CMainDialog::OnList3DevicesSelectionChanged);
|
connect(m_ui->devicesList, &QListWidget::currentRowChanged, this, &CMainDialog::OnList3DevicesSelectionChanged);
|
||||||
connect(m_ui->musicCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckboxMusic);
|
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->videomemoryCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckbox3DVideoMemory);
|
||||||
connect(m_ui->flipVideoMemoryPagesCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckboxFlipVideoMemPages);
|
connect(m_ui->flipVideoMemoryPagesCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckboxFlipVideoMemPages);
|
||||||
connect(m_ui->sound3DCheckBox, &QCheckBox::toggled, this, &CMainDialog::OnCheckbox3DSound);
|
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;
|
LegoDeviceEnumerate* device_enumerator = currentConfigApp->m_device_enumerator;
|
||||||
device_enumerator->GetDevice(selected, currentConfigApp->m_driver, currentConfigApp->m_device);
|
device_enumerator->GetDevice(selected, currentConfigApp->m_driver, currentConfigApp->m_device);
|
||||||
if (currentConfigApp->GetHardwareDeviceColorModel() != D3DCOLOR_NONE) {
|
if (currentConfigApp->GetHardwareDeviceColorModel() == D3DCOLOR_NONE) {
|
||||||
m_ui->drawCursorCheckBox->setEnabled(true);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
currentConfigApp->m_3d_video_ram = FALSE;
|
currentConfigApp->m_3d_video_ram = FALSE;
|
||||||
currentConfigApp->m_flip_surfaces = FALSE;
|
currentConfigApp->m_flip_surfaces = FALSE;
|
||||||
m_ui->videomemoryCheckBox->setChecked(currentConfigApp->m_3d_video_ram);
|
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);
|
m_ui->videomemoryCheckBox->setChecked(currentConfigApp->m_3d_video_ram);
|
||||||
bool full_screen = currentConfigApp->m_full_screen;
|
bool full_screen = currentConfigApp->m_full_screen;
|
||||||
currentConfigApp->AdjustDisplayBitDepthBasedOnRenderStatus();
|
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 (full_screen) {
|
||||||
if (currentConfigApp->m_display_bit_depth == 8) {
|
if (currentConfigApp->m_display_bit_depth == 8) {
|
||||||
m_ui->colorPalette256RadioButton->setChecked(true);
|
m_ui->colorPalette256RadioButton->setChecked(true);
|
||||||
@ -183,7 +171,6 @@ void CMainDialog::UpdateInterface()
|
|||||||
m_ui->colorPalette256RadioButton->setEnabled(full_screen && currentConfigApp->GetConditionalDeviceRenderBitDepth());
|
m_ui->colorPalette256RadioButton->setEnabled(full_screen && currentConfigApp->GetConditionalDeviceRenderBitDepth());
|
||||||
m_ui->colorPalette16bitRadioButton->setEnabled(full_screen && currentConfigApp->GetDeviceRenderBitStatus());
|
m_ui->colorPalette16bitRadioButton->setEnabled(full_screen && currentConfigApp->GetDeviceRenderBitStatus());
|
||||||
m_ui->sound3DCheckBox->setChecked(currentConfigApp->m_3d_sound);
|
m_ui->sound3DCheckBox->setChecked(currentConfigApp->m_3d_sound);
|
||||||
m_ui->drawCursorCheckBox->setChecked(currentConfigApp->m_draw_cursor);
|
|
||||||
switch (currentConfigApp->m_model_quality) {
|
switch (currentConfigApp->m_model_quality) {
|
||||||
case 1:
|
case 1:
|
||||||
m_ui->modelQualityFastRadioButton->setChecked(true);
|
m_ui->modelQualityFastRadioButton->setChecked(true);
|
||||||
@ -315,14 +302,6 @@ void CMainDialog::SwitchToAdvanced(bool p_advanced)
|
|||||||
m_advanced = 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
|
// FUNCTION: CONFIG 0x004048c0
|
||||||
void CMainDialog::OnCheckboxMusic(bool checked)
|
void CMainDialog::OnCheckboxMusic(bool checked)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -43,7 +43,6 @@ private slots:
|
|||||||
void OnRadiobuttonTextureLowQuality(bool checked);
|
void OnRadiobuttonTextureLowQuality(bool checked);
|
||||||
void OnRadiobuttonTextureHighQuality(bool checked);
|
void OnRadiobuttonTextureHighQuality(bool checked);
|
||||||
void OnCheckboxJoystick(bool chedked);
|
void OnCheckboxJoystick(bool chedked);
|
||||||
void OnCheckboxDrawCursor(bool checked);
|
|
||||||
void OnCheckboxMusic(bool checked);
|
void OnCheckboxMusic(bool checked);
|
||||||
void OnButtonAdvanced();
|
void OnButtonAdvanced();
|
||||||
void accept() override;
|
void accept() override;
|
||||||
|
|||||||
@ -332,13 +332,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="QCheckBox" name="drawCursorCheckBox">
|
|
||||||
<property name="text">
|
|
||||||
<string>Draw Cursor</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user