DDC: EDID data improvements, hopefully fixes 1600x1200 on older OSes
This commit is contained in:
@@ -58,6 +58,7 @@ extern "C" {
|
||||
# include <86box/discord.h>
|
||||
#endif
|
||||
#include <86box/gdbstub.h>
|
||||
#include <86box/version.h>
|
||||
}
|
||||
|
||||
#include <thread>
|
||||
@@ -217,6 +218,28 @@ main(int argc, char *argv[])
|
||||
return 6;
|
||||
}
|
||||
|
||||
#ifdef Q_OS_WINDOWS
|
||||
# if !defined(EMU_BUILD_NUM) || (EMU_BUILD_NUM != 5624)
|
||||
HWND winbox = FindWindow("TWinBoxMain", NULL);
|
||||
if (winbox &&
|
||||
FindWindowEx(winbox, NULL, "TToolBar", NULL) &&
|
||||
FindWindowEx(winbox, NULL, "TListBox", NULL) &&
|
||||
FindWindowEx(winbox, NULL, "TStatusBar", NULL) &&
|
||||
(winbox = FindWindowEx(winbox, NULL, "TPageControl", NULL)) && /* holds a TTabSheet even on VM pages */
|
||||
FindWindowEx(winbox, NULL, "TTabSheet", NULL))
|
||||
# endif
|
||||
{
|
||||
QMessageBox warningbox(QMessageBox::Icon::Warning, QObject::tr("WinBox is no longer supported"),
|
||||
QObject::tr("Development of the WinBox manager stopped in 2022 due to a lack of maintainers. As we direct our efforts towards making 86Box even better, we have made the decision to no longer support WinBox as a manager.\n\nNo further updates will be provided through WinBox, and you may encounter incorrect behavior should you continue using it with newer versions of 86Box. Any bug reports related to WinBox behavior will be closed as invalid.\n\nGo to 86box.net for a list of other managers you can use."),
|
||||
QMessageBox::NoButton);
|
||||
warningbox.addButton(QObject::tr("Continue"), QMessageBox::AcceptRole);
|
||||
warningbox.addButton(QObject::tr("Exit"), QMessageBox::RejectRole);
|
||||
warningbox.exec();
|
||||
if (warningbox.result() == QDialog::Accepted)
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (settings_only) {
|
||||
Settings settings;
|
||||
if (settings.exec() == QDialog::Accepted) {
|
||||
|
||||
Reference in New Issue
Block a user