Skip to content

Commit

Permalink
Merge pull request 86Box#4276 from lemondrops/patch-4
Browse files Browse the repository at this point in the history
Miscellaneous fixes and improvements for v4.1.1
  • Loading branch information
OBattler authored Mar 17, 2024
2 parents d2cff08 + 5b96375 commit 11b645d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/qt/qt_harddiskdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ HarddiskDialog::onExistingFileSelected(const QString &fileName, bool precheck)
} else if (image_is_vhd(fileNameUtf8.data(), 1)) {
MVHDMeta *vhd = mvhd_open(fileNameUtf8.data(), 0, &vhd_error);
if (vhd == nullptr) {
QMessageBox::critical(this, tr("Unable to read file"), tr("Make sure the file exists and is readable"));
QMessageBox::critical(this, tr("Unable to read file"), tr("Make sure the file exists and is readable."));
return;
} else if (vhd_error == MVHD_ERR_TIMESTAMP) {
QMessageBox::StandardButton btn = QMessageBox::warning(this, tr("Parent and child disk timestamps do not match"), tr("This could mean that the parent image was modified after the differencing image was created.\n\nIt can also happen if the image files were moved or copied, or by a bug in the program that created this disk.\n\nDo you want to fix the timestamps?"), QMessageBox::Yes | QMessageBox::No);
Expand Down Expand Up @@ -618,7 +618,7 @@ HarddiskDialog::onExistingFileSelected(const QString &fileName, bool precheck)
}

if ((sectors > max_sectors) || (heads > max_heads) || (cylinders > max_cylinders)) {
QMessageBox::critical(this, tr("Unable to read file"), tr("Make sure the file exists and is readable"));
QMessageBox::critical(this, tr("Unable to read file"), tr("Make sure the file exists and is readable."));
return;
}

Expand Down
4 changes: 2 additions & 2 deletions src/qt/qt_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,11 @@ c16stombs(char dst[], const uint16_t src[], int len)
#endif

#ifdef _WIN32
# if defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(_M_X64)
# if defined(__amd64__) || defined(_M_X64) || defined(__aarch64__) || defined(_M_ARM64)
# define LIB_NAME_GS "gsdll64.dll"
# else
# define LIB_NAME_GS "gsdll32.dll"
#endif
# endif
# define MOUSE_CAPTURE_KEYSEQ "F8+F12"
#else
# define LIB_NAME_GS "libgs"
Expand Down
1 change: 1 addition & 0 deletions src/qt/qt_progsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ ProgSettings::ProgSettings(QWidget *parent)
ui->comboBoxLanguage->setCurrentIndex(ui->comboBoxLanguage->findData(i.key()));
}
}
ui->comboBoxLanguage->model()->sort(Qt::AscendingOrder);

mouseSensitivity = mouse_sensitivity;
ui->horizontalSlider->setValue(mouseSensitivity * 100.);
Expand Down

0 comments on commit 11b645d

Please sign in to comment.