Commit Graph

290 Commits

Author SHA1 Message Date
Cacodemon345
7dc84e0f67 qt: Fix HDD path relativization on Windows 2022-03-04 01:25:34 +06:00
Jasmine Iwanek
4674756664 More newline and whitespace cleanups 2022-02-20 16:26:40 -05:00
David Hrdlička
76fbaa4b8c Revert "Merge branch 'master' of https://github.com/86Box/86Box"
This reverts commit efb79217f2, reversing
changes made to 351db812e0.
2022-02-18 21:42:05 +01:00
Cacodemon345
c577aa85f2 qt: Add fullscreen status icons support and option 2022-02-16 01:42:11 +06:00
Alexander Babikov
e0593523f2 Make the "PAUSED" toolbar string translatable 2022-02-13 21:00:40 +05:00
David Hrdlička
4b3aabc4ba Fix non-Qt Unix build 2022-02-07 22:58:08 +01:00
ts-korhonen
9a566a501c Add hide_tool_bar config file setting
In preparation for toolbar implementation
2022-01-09 16:46:44 +02:00
Cacodemon345
2da187c0bd Fix plat_mmap on FreeBSD (#1980)
* Fix plat_mmap on FreeBSD

* Same for old codegen backend

* ...and for new codegen backend
2022-01-07 09:58:59 +01:00
Alexander Babikov
a6af62835b Synchronize the internal clock with host time when unpausing the emulator 2021-12-22 06:04:58 +05:00
David Hrdlička
52486e121e Convert CMake files to 4 spaces indentation 2021-12-20 15:08:23 +01:00
ts-korhonen
a03d0f0461 Merge branch 'master' of https://github.com/86Box/86Box 2021-12-17 22:28:11 +02:00
ts-korhonen
805638ddd8 Fix window resize not always working
Change doresize to atomic_flag to prevent race condition
2021-12-17 22:15:21 +02:00
David Hrdlička
7381ab6928 Minor changes to threading
- Renamed `cpp11_thread.cpp` to `thread.cpp`
- Removed features that are only supported by Win32 threads (`thread_wait` with timeout and mutex with spinlock)
- Fixed formatting in `thread.cpp`
2021-12-17 19:59:25 +01:00
David Hrdlička
e0a73a99ec Turn the RtMidi module into a full standalone MIDI module
Removes the now-redundant platform MIDI infrastructure
2021-12-17 10:10:59 +01:00
David Hrdlička
275919859a Fix typos 2021-12-17 07:41:07 +01:00
David Hrdlička
7df9e2a454 Add a compile option to choose between thread implementations 2021-12-17 06:59:53 +01:00
OBattler
ce8f66bc07 Reduced the texture size back 2048x2048. 2021-12-17 03:30:13 +01:00
Laci bá
41ba4ee86b Fix that POST card's message is disappearing when language/iconset change occurs 2021-12-05 11:48:31 +01:00
Miran Grča
52e23efb44 Merge branch 'master' into changeable_icon_set 2021-11-18 22:15:53 +01:00
Laci bá
03a7247630 Apply requested changes
- Remove icon functions from plat.h.
- Fix some indentation problems.
- Remove unused parameter from win_stbar.c
- Rename win_lang.c to win_progsett.c
- Remove stub functions from unix.c
- Move win_load_icon_set() to ui_init()
- Replace the translated texts to English, and let the translators translate them
- Fix the control IDs in dialogs.rc.
- Use the requested solution in win_icon.c for setting the array variables.
2021-11-17 19:02:19 +01:00
Andreas J. Reichel
f935d9b105 Unix: Make fullscreen command really toggle
Help says that fullscreen TOGGLES fullscreen. Fix this.

Signed-off-by: Andreas J. Reichel <andreas@reichel.bayern>
2021-11-17 14:35:22 +01:00
Laci bá
0aa6e9c8a6 Finish the changeable iconset 2021-11-16 19:38:31 +01:00
Laci bá
1586cf6f57 Fix some Linux/Mac compile breaking stuff 2021-11-14 15:00:55 +01:00
Laci bá
dafc429e93 A lot of changes
- Fix the broken itemindex of ComboBox  in the Settings dialog
- Change from LCID to uint32_t
- Rewrite the headers of the lang related functions (can handle the whole LCID as input)
- Add dummy functions to unix.c
- Add proper combobox handling in win_settings.c
- Added a lot of debug calls temporarily
- Reactivate every disabled option related to language changes
- Move lang_id to 86box.h from win.h
- Implement on-fly resource switch as discussed with OBattler
- Reimplement everything language related in the initialization section of the program
- Implemented the ladder of three points
1, what is the --lang?
2, what are definied in the config? (to be implemented)
3, what is the system language
2021-11-09 22:33:54 +01:00
Laci bá
9914ad520c Multiple language-related updates
Add the possibility to change runtime language, via --lang parameter. Also specify the verbose language code in the Hungarian translation.
2021-11-09 18:53:15 +01:00
dob205
452e2348da Removes timespec_get() from Unix systems
This change removes timespec_get() from Unix systems and makes it also possible to cross-compile binaries on macOS Big Sur or macOS Monterrey that target macOS Mojave at minimum since Mojave lacks support for timespec_get().
2021-11-07 18:00:18 +01:00
Cacodemon345
8ae76614df Fix compile error 2021-10-20 00:37:23 +06:00
Cacodemon345
f1a74ac36d Fix plat_mmap on macOS platform 2021-10-19 23:46:32 +06:00
Miran Grča
bc33a42c12 Merge pull request #1755 from andi8086/are
Make it build in arch linux
2021-10-19 18:21:21 +02:00
Andreas J. Reichel
6dd744141c Make it build in arch linux and Debian
* Probably unresolved external due to newer gcc, thus
  added libsdl to libui.a as well.
* Make it work for all distros, which either have SDL2::SDL2
  or ${SDL2_LIBRARIES}, provided by sdl2-config or FindSDL2.cmake.

Signed-off-by: Andreas J. Reichel <homebase_ar@web.de>
2021-10-18 21:15:31 +02:00
RichardG867
5bf8aa2d58 Port plat_m(un)map from the VFIO branch 2021-10-16 20:12:49 -03:00
Cacodemon345
16a8c4cb25 Add more missing strings to Unix backend 2021-10-16 00:14:26 +06:00
Cacodemon345
ca1a28f0e6 Fix message box display on Unix 2021-10-13 23:41:02 +06:00
OBattler
46807540ed Rewritten renderer blitting, fixes flickering when inversion or grayscale is used. 2021-10-06 02:26:30 +02:00
OBattler
03ed12a966 Various blitter fixes, should fix 8088MPH Kefrens segmentation fault. 2021-09-27 04:32:08 +02:00
David Hrdlička
73cac00119 Remove pthreads on Win32 from build files 2021-09-23 23:03:33 +02:00
David Hrdlička
4f57f29836 Move thread.c back to src/unix 2021-09-23 22:52:53 +02:00
Cacodemon345
d4cd4b7a44 Fix flickering on Unix backend 2021-09-20 16:27:10 +06:00
OBattler
206c34ed27 CMakeList.txt now uses libpthread. 2021-09-15 00:01:18 +02:00
OBattler
3c2ac29c68 Switched threads to pthread for all platforms (on Windows, you can compile with Win32 threads using PTHREAD=n). 2021-09-14 21:58:15 +02:00
OBattler
f27fec1740 Removed EGA/(S)VGA render wake-up on zero-sized blit and fixed the last compile-breaking mistake in the Unix SDL code. 2021-09-13 23:28:00 +02:00
OBattler
96faa28eeb Removed the useless y1 and y2 parameters from the renderers' blit functions (and other places). 2021-09-13 23:19:10 +02:00
Miran Grča
84db99f4ef Merge pull request #1684 from Cacodemon345/patch-10
Include SDL.h before anything else
2021-09-11 20:44:06 +02:00
Cacodemon345
2092f1dceb Update unix_sdl.c 2021-09-10 18:01:21 +06:00
Cacodemon345
8b316f869b Include SDL.h before anything else
This also cleans up the unnecessary source-level defines
2021-09-09 23:51:26 +06:00
Cacodemon345
5d1e026f7d Add help command
This commit also adds PrintScreen key mapping.
2021-09-08 13:49:04 +06:00
Miran Grča
67695fe204 Merge pull request #1673 from Cacodemon345/patch-7
Fix NULL access crashes on ALSA MIDI close
2021-09-07 22:02:55 +02:00
Cacodemon345
e082658d9d Fix monitor argument count 2021-09-08 01:44:30 +06:00
Cacodemon345
eea72da77b Fix NULL access crashes on ALSA MIDI close 2021-09-07 23:30:44 +06:00
Cacodemon345
e8f8b74d61 Add Windows key mappings 2021-09-06 22:06:02 +06:00