mirror of
https://github.com/86Box/86Box.git
synced 2026-02-25 04:45:31 -07:00
Merge branch 'master' into pc98x1
This commit is contained in:
@@ -482,10 +482,10 @@ mouse_subtract_z(int *delta_z, int min, int max, int invert)
|
||||
int z = atomic_load(&mouse_z);
|
||||
int real_z = invert ? -z : z;
|
||||
|
||||
if (mouse_z > max) {
|
||||
if (real_z > max) {
|
||||
*delta_z = max;
|
||||
real_z -= max;
|
||||
} else if (mouse_z < min) {
|
||||
} else if (real_z < min) {
|
||||
*delta_z = min;
|
||||
real_z += ABS(min);
|
||||
} else {
|
||||
|
||||
@@ -877,9 +877,7 @@ MediaMenu::zipUpdateMenu(int i)
|
||||
auto childs = menu->children();
|
||||
|
||||
auto *ejectMenu = dynamic_cast<QAction *>(childs[zipEjectPos]);
|
||||
auto *reloadMenu = dynamic_cast<QAction *>(childs[zipReloadPos]);
|
||||
ejectMenu->setEnabled(!name.isEmpty());
|
||||
reloadMenu->setEnabled(!prev_name.isEmpty());
|
||||
|
||||
QString busName = tr("Unknown Bus");
|
||||
switch (zip_drives[i].bus_type) {
|
||||
@@ -1008,9 +1006,7 @@ MediaMenu::moUpdateMenu(int i)
|
||||
auto childs = menu->children();
|
||||
|
||||
auto *ejectMenu = dynamic_cast<QAction *>(childs[moEjectPos]);
|
||||
auto *reloadMenu = dynamic_cast<QAction *>(childs[moReloadPos]);
|
||||
ejectMenu->setEnabled(!name.isEmpty());
|
||||
reloadMenu->setEnabled(!prev_name.isEmpty());
|
||||
|
||||
QString busName = tr("Unknown Bus");
|
||||
switch (mo_drives[i].bus_type) {
|
||||
|
||||
@@ -108,17 +108,14 @@ private:
|
||||
int floppyImageHistoryPos[MAX_PREV_IMAGES];
|
||||
|
||||
int cdromMutePos;
|
||||
int cdromReloadPos;
|
||||
int cdromImagePos;
|
||||
int cdromDirPos;
|
||||
int cdromImageHistoryPos[MAX_PREV_IMAGES];
|
||||
|
||||
int zipEjectPos;
|
||||
int zipReloadPos;
|
||||
int zipImageHistoryPos[MAX_PREV_IMAGES];
|
||||
|
||||
int moEjectPos;
|
||||
int moReloadPos;
|
||||
int moImageHistoryPos[MAX_PREV_IMAGES];
|
||||
|
||||
int netDisconnPos;
|
||||
|
||||
Reference in New Issue
Block a user