Commit Graph

70 Commits

Author SHA1 Message Date
OBattler
f96eb5a2fc Pausing the emulator, including using the Pause key, now also releases mouse capture, closes #2293. 2022-08-02 02:57:00 +02:00
Cacodemon345
ac12ad2243 Revert "Fix crash at exit due to a unreleased mutex."
This reverts commit 80e5470006.

std::unique_lock is incapable of recursively locking a mutex, which is needed for multi-monitor setups.
As a result it will crash/show undefined behaviour when switching renderers. Switch to instead calling
endblit() after pc_close to avoid crashes; at this point the CPU thread is now terminated so the mutex
no longer remains held by it.
2022-08-01 13:29:54 +06:00
Alexander Babikov
6452e89235 Fix a typo in qt_platform.cpp 2022-07-26 10:22:31 +05:00
ts-korhonen
80e5470006 Fix crash at exit due to a unreleased mutex.
Qt startblit() and endblit() use a mutex that can remain locked at exit.
A thread static wrapper makes sure that each thread using the mutex will
also release it before terminating.
2022-07-25 14:13:30 +03:00
OBattler
c793fd7142 Proper separation. 2022-07-24 03:54:47 +02:00
OBattler
b13bb3a263 QT now uses the old Windows dynamic loading code when on Windows. 2022-07-24 03:37:37 +02:00
OBattler
476435f3d0 Attempt to fix Mac builds. 2022-07-11 03:44:30 +02:00
Cacodemon345
11a75f5fd5 Merge branch 'master' into multimonitor-take2-ui 2022-07-10 11:44:58 +06:00
OBattler
9eb7f6a3f9 Increased some arrays in plat_pause(). 2022-07-10 00:38:14 +02:00
Cacodemon345
7ab71cafd3 Working multimonitor 2022-07-04 01:50:42 +06:00
David Hrdlička
0a7efe9898 qt: fix missing null terminator in the VM paused message 2022-05-28 17:39:11 +02:00
Cacodemon345
2545da8e04 qt: attempt fixing freezes on power off of emulated machine 2022-05-05 11:55:17 +06:00
richardg867
de82cf8bf1 macOS: Fix plat_getcwd on .app bundle 2022-04-20 13:35:14 -03:00
David Hrdlička
e60af6c29d Clean up plat.h a bit 2022-04-20 01:03:39 +02:00
David Hrdlička
048cfbea00 Fix accidental removal 2022-04-08 10:45:46 +02:00
David Hrdlička
25b8f42dc6 qt: FIx broken build due to missing define 2022-04-08 10:34:59 +02:00
David Hrdlička
e711b6c44a Fix ROM location on macOS 2022-04-08 10:20:01 +02:00
David Hrdlička
3449a173ae Move ROM search path code to rom.c, rewrite rom_fopen 2022-04-08 01:34:47 +02:00
David Hrdlička
a780d9a241 Rewrite plat_init_rom_paths in Qt frontend 2022-04-08 00:58:38 +02:00
Cacodemon345
c700f93b4b qt: Fix warnings 2022-04-07 01:27:16 +06:00
Cacodemon345
0f54376224 Merge branch 'newqt' of ssh://github.com/Cacodemon345/86box into newqt 2022-04-07 01:00:09 +06:00
Cacodemon345
0fd3042e0c qt: Add support for loading ROMs from ~/Documents/86Box/roms on macOS 2022-04-07 00:57:16 +06:00
Cacodemon345
f8c53dec3a qt: Fix compilation on Linux 2022-04-06 19:56:30 +06:00
Cacodemon345
1a3a7bec0e Move platform-specific ROM path adding code into plat modules 2022-04-06 16:16:25 +06:00
Alexander Babikov
4b8b7c3950 Add handling for several missing strings to plat_get_string on Qt and legacy Unix UIs 2022-03-15 04:19:10 +05:00
ts-korhonen
87546d2ce6 qt: fix multiple compiler warnings 2022-03-07 21:47:48 +02:00
Cacodemon345
d695ca3cc9 qt: Don't normalize paths on non-Windows 2022-03-04 14:00:24 +06:00
Cacodemon345
7dc84e0f67 qt: Fix HDD path relativization on Windows 2022-03-04 01:25:34 +06:00
Cacodemon345
06fc26ccab qt: Add Unix manager support (client-side interface) 2022-02-27 15:30:40 +06:00
Cacodemon345
d87d0be2f8 qt: Uncapture mouse before exit 2022-02-17 11:51:24 +06:00
Alexander Babikov
e0593523f2 Make the "PAUSED" toolbar string translatable 2022-02-13 21:00:40 +05:00
Miran Grča
735a5fe44e Update qt_platform.cpp 2022-02-13 14:42:36 +01:00
Cacodemon345
84a28bd7e8 qt: Don't pause twice 2022-02-13 19:28:28 +06:00
Cacodemon345
12be150462 qt: Replace plat_path_abs with the ones from Unix and Win32 backends 2022-02-11 00:31:41 +06:00
Alexander Babikov
3447d96fe0 qt: clear the filename buffer in plat_tempfile 2022-02-10 19:55:09 +05:00
OBattler
2a41bc823f Fixed default for updating status bar icons. 2022-02-10 11:07:09 +01:00
Cacodemon345
208a9d5205 Fix wrong copyright notice 2022-02-07 15:52:45 +06:00
Cacodemon345
a637f61d4f Add missing copyright notices 2022-02-07 15:00:02 +06:00
Cacodemon345
ca002ec886 Merge remote-tracking branch 'winqt/qt' into newqt 2022-02-02 22:12:25 +06:00
Cacodemon345
a1c0605cbe qt: Fix error strings 2022-02-02 22:08:19 +06:00
ts-korhonen
8649294f60 qt: Add uk-UA. Make program settings dynamic size
to fit buttons with different translations.
2022-02-01 21:15:53 +02:00
ts-korhonen
7995be4adb qt: Add VM-manager message handling on windows 2022-01-22 01:10:11 +02:00
ts-korhonen
48b7f652fb qt: Update translations from rc 2022-01-21 19:02:05 +02:00
ts-korhonen
188f1a1b7e qt: fix plat_fopen() encoding 2022-01-15 00:07:01 +02:00
ts-korhonen
7555282d30 qt: add hide_tool_bar setting variable 2022-01-09 16:54:37 +02:00
Cacodemon345
62a4a025b1 Port Win32 Discord integration to Linux and macOS 2022-01-09 01:04:59 +06:00
ts-korhonen
34de2d15cf qt: Fix type error 2022-01-08 13:40:45 +02:00
Cacodemon345
f2f06aa958 Add runtime language switching 2022-01-08 17:14:03 +06:00
Cacodemon345
51cb0d48aa Backport 2da187c0bd to Qt backend 2022-01-07 15:00:00 +06:00
Cacodemon345
970430f721 Even more strings changes 2022-01-06 16:58:11 +06:00