Commit Graph

129 Commits

Author SHA1 Message Date
OBattler
a491b3a35c Reverted the meaning of video_fullscreen_first to what it used to be. 2021-09-18 21:33:13 +02:00
OBattler
0f69aa7ff7 Some fixes, fixes PCjr when the emulator is started in full screen, fixes #1702. 2021-09-18 15:24:00 +02:00
OBattler
065b8cc0c3 Using MoveWindow instead of SetWindowPos to move the window now, which actually works. 2021-09-18 00:01:39 +02:00
OBattler
df30b47aa7 And fixed the behavior of that. 2021-09-14 22:20:20 +02:00
OBattler
07eb764df6 Locking a window to a specified size now also makes it remember the position, closes #1683. 2021-09-14 22:17:47 +02:00
OBattler
64aee0481c Removed the non-working keyboard hook, and with it, the NOHOOK make parameter. 2021-08-29 13:59:05 +02:00
Alexander Babikov
709357f668 The sound gain dialog is now accessible from the menu bar in the "Tools" menu 2021-08-05 14:56:25 +05:00
OBattler
43aed39016 Fixed a compile-breaking typo in win/win_ui.c . 2021-07-30 19:37:50 +02:00
OBattler
79f83cc928 Fixed "Hide status bar" check mark, fixes #1569. 2021-07-30 19:17:46 +02:00
OBattler
03068f9ee3 Removed the last leftovers of IDM_CONFIG_LOAD and IDM_CONFIG_SAVE, should fix compile. 2021-07-30 04:45:05 +02:00
OBattler
d1991ac763 Added the ability to hide the status bar, closes #1530. 2021-07-30 04:01:46 +02:00
OBattler
ca6863540c Some fixes. 2021-07-28 03:29:14 +02:00
OBattler
706ad0e896 Changed the way the emulator is shut down, fixes #1555. 2021-07-21 04:05:40 +02:00
OBattler
9adf0fdcc4 Added the ability for keyboard to require capture, in order for 86Box keyboard input to operate like VMWare, closes #829. 2021-07-19 02:27:22 +02:00
OBattler
1e20655813 Fixes window resizing in DPI scaled mode, fixes #1524. 2021-07-18 17:52:22 +02:00
ts-korhonen
7941659ad0 Ignore key events in message pump if they aren't accelerators. Fixes alt-f4 closing sdl renderer window. 2021-06-15 15:26:04 +03:00
ts-korhonen
e4eef4a1b2 Move cpu_override warning dialog after main window is created so that manager gets the correct window handle. 2021-05-11 00:00:34 +03:00
David Hrdlička
0361709ada Add a warning for cpu_override 2021-05-09 02:48:24 +02:00
ts-korhonen
dd65a80b19 Add menu option for filter method to use when scaling video. 2021-05-01 20:49:23 +03:00
OBattler
0a8748bce7 Fixed an uninitialized variable in win/win_ui.c. 2021-04-29 19:33:36 +02:00
ts-korhonen
fcac2d7e78 win_openg: Added menu item to remove active shader. 2021-04-26 09:51:23 +03:00
Alexander Babikov
b4a16437d3 Add a separate build option for the OpenGL renderer 2021-04-26 02:45:20 +05:00
ts-korhonen
2bf6c7aa11 win_opengl: UI for options and add them to config. Reloading changed options at runtime. Improved framerate limitter. 2021-04-23 16:09:45 +03:00
ts-korhonen
3088c6c26f win_opengl: (WIP)UI for options. Add comments to help find conditionals that put opengl in dev_branch. 2021-04-21 23:08:32 +03:00
Miran Grča
027d93196e Merge pull request #1382 from ts-korhonen/opengl
OpenGL renderer a.k.a. shader support
2021-04-18 00:17:53 +02:00
OBattler
3497ed71c2 Some fixes to the UI code. 2021-04-17 22:43:31 +02:00
ts-korhonen
e6bac34b47 win_opengl: restrict to DEV_BRANCH as a separate renderer 2021-04-17 13:45:11 +03:00
OBattler
58a1939dbf Improved the main window size specifying, now has an option to lock the window to the specified size, making it unresizable. 2021-04-12 05:58:59 +02:00
OBattler
b6b5558aa3 Added the ability to size the window to a specific resolution, closes #1362;
Fixed unsolicited mouse captures after a double-click in an open file dialog, fixes #1367.
2021-04-12 03:42:03 +02:00
Teemu Korhonen
6ab499a64e Full screen resize fix (#1359)
* Fixed WM_WINDOWPOSCHANGED not handling window resize when leving full screen mode.

* Fix whitespaces.
2021-04-06 20:38:34 +02:00
OBattler
5dace5e657 Fixed warnings introduced by the UTF-8 conversion. 2021-04-01 00:04:59 +02:00
David Hrdlička
dfbbe08a07 rewrite the emulator to use UTF-8 internally 2021-03-30 09:46:49 +02:00
Sean Ramey
8d9a3f02ea Fix build due to renamed variable.
quited -> is_quit
2021-03-25 03:20:25 -05:00
David Hrdlička
533b7a5f30 win_ui: don't reset remembered window size
fixes #1291
2021-02-26 17:24:05 +01:00
David Hrdlička
014f16731e win_ui: remove redundant resizing code
the resize handler already takes care of resizing the render window and
status bar, so there is no need to do it after each
`ResizeWindowByClientArea` call
2021-02-24 21:04:42 +01:00
David Hrdlička
3bc409876e win_ui: fix status bar with resizable windows 2021-02-24 21:01:31 +01:00
David Hrdlička
220fffc4a2 win_ui: rewrite resizing using WM_WINDOWPOSCHANGED 2021-02-24 21:00:14 +01:00
luisjoseromero
c0e7ac3762 Integrated Chrome tracing
Added support for chrome tracing by integrating the
minitrace library (github.com/hrydgard/minitrace),
and modified it with a background flushing thread that allows
tracing to continue automatically after the predefined
1 million event limit.

Menu items and an accelerator (Ctr+T) have also been
added. Starting and stopping the trace simply replaces
trace.json with the new trace data.

The feature is disabled by default. Pass MINITRACE=y
to the build command to enable it. Some traces are
already added as an example, however they won't have
any effect if the feature is disabled.
2021-02-14 17:27:46 +00:00
OBattler
0c3eeeb591 Fixed window scaling. 2020-12-26 17:02:48 +01:00
luisjoseromero
4b42251b84 Fix blit thread related deadlocks
Removed unnecessary calls to video_wait_for_blit(), which in
addition to not doing much were also in a race with the
video_blit_memtoscreen() thread to wait for and reset the
blit_data.blit_complete event signalled by blit_thread(),
causing several deadlocks.
2020-12-22 00:19:45 +00:00
OBattler
dd125854f1 Fixed warnings when compiling without the keyboard hook. 2020-12-19 00:04:36 +01:00
OBattler
a1bb128cd9 Some tweaks to resizing, considerably reduces the stalls. 2020-11-29 00:55:24 +01:00
OBattler
19e093e554 Renderer fixes and improvements. 2020-11-28 07:04:40 +01:00
OBattler
6e233f4ac8 SDL renderer improvements and fixes and added SDL OpenGL option;
Various performance improvements;
Fixed USB UHCI HCHalt;
Cirrus Logic CL-GD 5422/24 fixes and removed them from the Dev branch;
The Storage controllers sections of Settings now has its own corresponding section of the configuration file;
Fixed the AT clock divisors for some Pentium OverDrive CPU's;
Added the ACPI RTC status (no ACPI RTC alarm event yet).
2020-11-26 18:20:24 +01:00
OBattler
7c078d4be1 The power off API now actually shuts down the emulator. 2020-11-19 19:27:04 +01:00
Alexander Babikov
e0ff781a34 Fix the mouse lock after fullscreen - for real this time. (#1080) 2020-11-16 18:09:13 +01:00
OBattler
0faf6692c9 WARNING: CONFIGS MIGHT PARTIALLY BREAK WHERE DEVICE NAMES HAVE CHANGED.
Changes to device_t struct to accomodate the upcoming PCI IRQ arbitration rewrite;
Added device.c/h API to obtain name from the device_t struct;
Significant changes to win/win_settings.c to clean up the code a bit and fix bugs;
Ported all the CPU and AudioPCI commits from PCem;
Added an API call to allow ACPI soft power off to gracefully stop the emulator;
Removed the Siemens PCD-2L from the Dev branch because it now works;
Removed the Socket 5 HP Vectra from the Dev branch because it now works;
Fixed the Compaq Presario and the Micronics Spitfire;
Give the IBM PC330 its own list of 486 CPU so it can have DX2's with CPUID 0x470;
SMM fixes;
Rewrote the SYSENTER, SYSEXIT, SYSCALL, and SYSRET instructions;
Changed IDE reset period to match the specification, fixes #929;
The keyboard input and output ports are now forced in front of the queue when read, fixes a number of bugs, including the AMI Apollo hanging on soft reset;
Added the Intel AN430TX but Dev branched because it does not work;
The network code no longer drops packets if the emulated network card has failed to receive them (eg. when the buffer is full);
Changes to PCI card adding and renamed some PCI slot types, also added proper AGP bridge slot types;
USB UHCI emulation is no longer a stub (still doesn't fully work, but at least Windows XP chk with Debug no longer ASSERT's on it);
Fixed NVR on the the SMC FDC37C932QF and APM variants;
A number of fixes to Intel 4x0 chipsets, including fixing every register of the 440LX and 440EX;
Some ACPI changes.
2020-11-16 00:01:21 +01:00
driver1998
429a83d3eb Enable DPI scaling of emulated screen 2020-09-03 12:24:17 +08:00
driver1998
95f9485ff8 Main UI: HiDPI support 2020-09-03 12:24:17 +08:00
driver1998
a3a139e3ef Add PMv2 related APIs 2020-09-03 12:24:17 +08:00