summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/osdwindow.cpp
Commit message (Collapse)AuthorAgeFilesLines
* osd: Moved some windows-specific stuff into osd/windows/window.{h,cpp}. Vas Crabb2023-02-261-3/+0
|
* osd: Turned video modules into actual modules, fixed various issues. Vas Crabb2023-02-011-59/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't ignore the return status of OSD module initialisation. Attempt to fall back to an alternate module if the selected module fails to initialise. Log more useful diagnostic information at verbose level. Fixed BGFX crash on exit after toggling fullscreen. Also persist more settings than just the selected chains across toggling fullscreen. Turned video modules into OSD modules in the same sense as all the other OSD modules. They now use the same selection/fallback mechanism as all the other modules without special extra code in the OSD implementations. Untangled some object ownership mess. Windows own renderers, OSD objects own windows. Fixed a refrence loop that caused the first window object to always leak. Don't create renderer object until after underlying window has been created. Fixed issues with order of creation/destruction when toggling fullscreen or changing prescale in fullscreen with -switchres in SDL builds. Use more smart pointers in BGFX and Direct3D render modules. Most of the code now reutrns a smart pointer when handing over ownership or a naked pointer when retaining ownership. Fixed a few leaks and simplified cleanup code. Encapsulated various OSD modules better.
* Various input and OSD refactoring: Vas Crabb2023-01-291-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | osd: Supply OSD object to modules on initialisation. Encapsulated some event handling in the OSD objects rather than leaving it in free functions. Put various stuff in namespaces. osd/modules/input: Enabled dinput, xinput and winhybrid modules for Windows SDL builds, and enabled background input for dinput and xinput (and by extension winhybrid) modules. Also fixed some COM and X11 resource leaks. osd/modules/input/input_sdl.cpp: Flipped SDL mouse button order to match Windows, and exposed vertical and horizontal scroll as Z and rZ axes. Moved SDL UI event handling out of input devices into OSD object. osd/modules/input_rawinput.cpp: Changed lightgun Z axis token so it's correctly identified as a relative axis (it maps to the scroll wheel equivalent). osd: Added an option to choose the network provider module. Mostly useful if you build with both TUN/TAP and pcap support included, or if you want to disable emulated networking completely. emu/input.cpp: Use a better strategy for assembling input code names that uses fewer temporary strings and doesn't require use of the non-Unicode-aware space trimming function (fixes MT08552). osd/modules/input_dinput.cpp: Improved polling logic. osd: Made various parts of the input code less dependent on concrete emu objects, and reduced inappropriately passing around the machine object. Made input modules less dependent on OSD implementation. Encapsulated some stuff and got rid of some vestigial newui and SDL1 support code. Cleaned up some interfaces. Moved OSD options classes to their own files. Prepare to remove main.h from emu.h - it's mostly used to get the application name, which the vast majority of emulated devices don't need to do.
* Clean up #includes in src/osd (#10029) ajrhacker2022-07-041-0/+19
| | | | | * Clean up #includes in src/osd * render/bgfx/view.cpp: Add license header
* Remove OSD_UWP from rest of code Miodrag Milanovic2021-10-261-1/+1
|
* osd: Rearranged window title to put system name first Vas Crabb2021-01-221-2/+3
|
* -osd/windows: Minimise full-screen windows on losing focus (#2997). Vas Crabb2021-01-211-0/+29
| | | | | | | | -osd/modules/osdwindow.cpp: Clean up window title formatting. * Show data type model in window title. * Moved window title formatting to a single place. -tools/chdman.cpp: Removed some unnecessary .c_str() calls.
* util/zippath.cpp: Fix suffix for zip archives. Vas Crabb2021-01-081-15/+6
|
* osdwindow.cpp: Make monitor code a little safer AJR2021-01-051-1/+1
|
* osdwindow.cpp: Centralize basic functions; de-virtualize various getters AJR2021-01-041-0/+62
|
* Remove emu.h from headers (nw) Olivier Galibert2017-02-111-0/+1
| | | | | | | | | | | | Per Vas' request. If the compile fails for you (i'm thinking osx and windows native debuggers here in particular), add '#include "emu.h"' as first include of the cpp files that fail. Due to our use of precompilation and forced inclusion, emu.h must be included as the very first non-comment thing we do if we want to be sure msvc compiles are identical to gcc/clang ones. Doing it directly instead of through an include increases the correctness probability by a magnitude.
* Add more UWP support (nw) Miodrag Milanovic2016-11-091-5/+5
|
* Convert OSD monitor info to modules plus add DXGI implementation Brad Hughes2016-09-141-0/+5
|
* Move window_list to osd_common_t Brad Hughes2016-06-111-6/+0
|
* Unify window_list in Windows and SDL OSD Brad Hughes2016-06-101-3/+5
|
* Cleanups and version bumpmame0173 Miodrag Milanovic2016-04-271-1/+1
|
* Revert "Temp revert of Brad changes (nw)" Miodrag Milanovic2016-04-251-11/+12
| | | | This reverts commit 5e831f6506ee06f8c30cb113551ee0fec53804db.
* Temp revert of Brad changes (nw) Miodrag Milanovic2016-04-251-12/+11
|
* Refactor OSD window. Brad Hughes2016-04-211-11/+12
| | | | | | | | | | Unified renderer in osd_window as std::unique_ptr Made windows all std::shared_ptr<window_type> Made window lists std::list<std::shared_ptr<window_type>> Updated OSD SDL worker_param to not use malloc (not compatible with smart pointers) Made renderer pointer to window a weak reference. May not be available during destruction of the window.
* Fix compile on linux and windows. couriersud2016-04-101-8/+0
|
* Cleanups and version bump Miodrag Milanovic2016-02-241-1/+1
|
* Fix some compile errors, not sure if all(nw) therealmogminer@gmail.com2016-02-211-0/+2
|
* Final fixups, get sliders working again, nw therealmogminer@gmail.com2016-02-211-2/+6
|
* First take on render API reorg, nw therealmogminer@gmail.com2016-02-211-0/+57