summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/window.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Disable WII Lightgun hack by default (#5056) Kiall Mac Innes2019-05-141-1/+1
|
* Disable setting the SDL_WINDOW_OPENGL extra flag if -video none is set. ↵ Dustin Stahlback2018-10-091-1/+1
| | | | This allows a true headless run when the environment variable SDL_VIDEODRIVER=dummy is set prior to mame/mess execution.
* Fix debug assert failure when using SDL fullscreen toggle (nw) AJR2018-08-061-1/+1
|
* sdl: Add SDL_WINDOW_BORDERLESS for fullscreen, required by some window ↵ Olivier Galibert2017-06-251-1/+1
| | | | | | | | | | | managers on linux [O. Galibert] Breakage was in 8338e0d7a490c8d33f924b55582223e70015c195 (march 2015), and yes, fullscreen didn't work correctly for me since then. Shows how much I use it, I guess. FWTW my window manage is the venerable fvwm2. CourierSud, if you happen to remember why you changed that (in the middle of a lot of other changes), let me know, and we'll see how to make it work for everybody.
* Move static data out of devices into the device types. This is a ↵ Vas Crabb2017-05-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | significant change, so please pay attention. The core changes are: * Short name, full name and source file are no longer members of device_t, they are part of the device type * MACHINE_COFIG_START no longer needs a driver class * MACHINE_CONFIG_DERIVED_CLASS is no longer necessary * Specify the state class you want in the GAME/COMP/CONS line * The compiler will work out the base class where the driver init member is declared * There is one static device type object per driver rather than one per machine configuration Use DECLARE_DEVICE_TYPE or DECLARE_DEVICE_TYPE_NS to declare device type. * DECLARE_DEVICE_TYPE forward-declares teh device type and class, and declares extern object finders. * DECLARE_DEVICE_TYPE_NS is for devices classes in namespaces - it doesn't forward-declare the device type. Use DEFINE_DEVICE_TYPE or DEFINE_DEVICE_TYPE_NS to define device types. * These macros declare storage for the static data, and instantiate the device type and device finder templates. The rest of the changes are mostly just moving stuff out of headers that shouldn't be there, renaming stuff for consistency, and scoping stuff down where appropriate. Things I've actually messed with substantially: * More descriptive names for a lot of devices * Untangled the fantasy sound from the driver state, which necessitates breaking up sound/flip writes * Changed DECO BSMT2000 ready callback into a device delegate * Untangled Microprose 3D noise from driver state * Used object finders for CoCo multipak, KC85 D002, and Irem sound subdevices * Started to get TI-99 stuff out of the TI-990 directory and arrange bus devices properly * Started to break out common parts of Samsung ARM SoC devices * Turned some of FM, SID, SCSP DSP, EPIC12 and Voodoo cores into something resmbling C++ * Tried to make Z180 table allocation/setup a bit safer * Converted generic keyboard/terminal to not use WRITE8 - space/offset aren't relevant * Dynamically allocate generic terminal buffer so derived devices (e.g. teleprinter) can specify size * Imporved encapsulation of Z80DART channels * Refactored the SPC7110 bit table generator loop to make it more readable * Added wrappers for SNES PPU operations so members can be made protected * Factored out some boilerplate for YM chips with PSG * toaplan2 gfx * stic/intv resolution * Video System video * Out Run/Y-board sprite alignment * GIC video hookup * Amstrad CPC ROM box members * IQ151 ROM cart region * MSX cart IRQ callback resolution time * SMS passthrough control devices starting subslots I've smoke-tested several drivers, but I've probably missed something. Things I've missed will likely blow up spectacularly with failure to bind errors and the like. Let me know if there's more subtle breakage (could have happened in FM or Voodoo). And can everyone please, please try to keep stuff clean. In particular, please stop polluting the global namespace. Keep things out of headers that don't need to be there, and use things that can be scoped down rather than macros. It feels like an uphill battle trying to get this stuff under control while more of it's added.
* Move special windows.h include directives to build defines (nw) Brad Hughes2016-12-281-1/+0
|
* Change window handle storage to template instead of void* (nw) (#1725) Brad Hughes2016-11-171-19/+19
| | | | * Change window handle storage to template instead of void* (nw)
* final srccleanmame0179 Vas Crabb2016-10-261-1/+1
|
* SDL: fixed alt-tab from locking up the window system on Linux and Mac. [Hans ↵ Olivier Galibert2016-10-241-1/+1
| | | | Ostermeyer]
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-10/+10
| | | | | Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
* Convert OSD monitor info to modules plus add DXGI implementation Brad Hughes2016-09-141-2/+3
|
* Warp mode for relative mouse on OSX SDL 2.0.4 Brad Hughes2016-08-271-0/+20
| | | | Fixes #1232
* Attempt to fix mouse state on startup in SDL builds by initialising members Vas Crabb2016-08-141-6/+17
|
* std::min and std:max instead of MIN and MAX, also some more macros converted ↵ Miodrag Milanovic2016-07-311-10/+10
| | | | to inline functions (nw)
* Make monitor list a list of shared_ptr like window_list (nw) Brad Hughes2016-07-011-2/+2
|
* Fix mouse behavior on OSX Brad Hughes2016-06-251-7/+25
|
* Move window_list to osd_common_t Brad Hughes2016-06-111-7/+7
|
* Unify window_list in Windows and SDL OSD Brad Hughes2016-06-101-13/+7
|
* Fix -resolution and -switchres Brad Hughes2016-05-261-2/+1
|
* ui refactoring [Vas Crabb] Vas Crabb2016-05-271-1/+1
| | | | | | | * move menu classes into ::ui namesapce * reduce scope of many symbols (first step in making UI code less rage-inducing so I can fix text input)
* Ioport refactoring and cleanups (nw) AJR2016-05-181-0/+1
| | | | | | - Completely move mouse hit testing down into the UI input module. This reduces some dependencies. - Never return a null pointer from ioport_field::name() to prevent potential crashes. All anonymous inputs are classified as INPUT_CLASS_INTERNAL, so several frontend functions now check type_class instead. - Correct a couple of typos.
* no deps between osd and frontend, internal debugger removed (nw) Miodrag Milanovic2016-05-061-3/+1
|
* fix windows SDL build (nw) Miodrag Milanovic2016-05-061-1/+1
|
* RIP sdlinc.h couriersud2016-05-061-3/+1
|
* Remove dead code left over from "-mt". [Couriersud] couriersud2016-05-061-331/+104
|
* Cleanups and version bumpmame0173 Miodrag Milanovic2016-04-271-4/+4
|
* Reset menu on toggle fullscreen [barlog] Miodrag Milanovic2016-04-261-0/+4
|
* Fixed Alt-Enter on SDL (nw) Miodrag Milanovic2016-04-261-1/+3
|
* Revert "Temp revert of Brad changes (nw)" Miodrag Milanovic2016-04-251-104/+78
| | | | This reverts commit 5e831f6506ee06f8c30cb113551ee0fec53804db.
* Temp revert of Brad changes (nw) Miodrag Milanovic2016-04-251-78/+104
|
* Various cleanups suggested by static analyzer (nw) Miodrag Milanovic2016-04-241-4/+4
|
* Split UI and frontend part from core [Miodrag Milanovic] Miodrag Milanovic2016-04-231-1/+1
|
* Refactor OSD window. Brad Hughes2016-04-211-104/+78
| | | | | | | | | | 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.
* SDL cleanup (nw) Miodrag Milanovic2016-04-201-15/+0
|
* Merge pull request #823 from ajrhacker/deviter Miodrag Milanović2016-04-201-16/+2
|\ | | | | Iterate over devices C++11 style [AJR]
| * Iterate over devices C++11 style AJR2016-04-181-16/+2
| | | | | | | | | | | | Replace the old device_iterator and its specialized versions with functionally equivalent classes that use standard operators to yield references to devices/interfaces rather than pointers. With range-based for loops, they no longer have to be stored in named variables, though they can also be reused concurrently since the iteration state is now maintained by a subclass. Add a few more typical getters to device_t::subdevice_list.
* | These init calls all returned false. No need for a return value in this couriersud2016-04-181-28/+14
| | | | | | case. [Couriersud]
* | soft is hard and hard is soft. Two is one and one is two. No wonder couriersud2016-04-181-2/+1
| | | | | | | | "-video accel" has substandard performance if opengl is disabled. [Couriersud]
* | Fix *nix compile. couriersud2016-04-181-1/+1
| |
* | Standardize platform window pointer storage in osd_window. Brad Hughes2016-04-181-27/+50
|/ | | | Also encapsulate show/hide capture/release cursor functionality.
* fix SDL compile (nw) arbee2016-04-101-1/+1
|
* convert osd_event into a class. Since all is std:: now, reduce to couriersud2016-04-101-9/+3
| | | inlineable code.
* Make sliders use an std::vector instead of a linked list, nw therealmogminer@gmail.com2016-04-101-24/+4
|
* Fix SDL build on linux: couriersud2016-04-091-3/+55
| | | | | | | - removed inclusion of SDL headers in all headers. - replaced those by forward declarations and in one case by a wrapper class (for a typedef struct). - added -Wno-strict-prototypes to 7z build (gmake target)
* Fixed joystick on Android preventing application to crash, cleanup init for ↵ Miodrag Milanovic2016-04-021-1/+1
| | | | SDL in total (nw)
* Cleanups and version bump Miodrag Milanovic2016-03-301-22/+22
|
* Copy/paste some code from Windows OSD to get SDL going again - sorry if this ↵ Vas Crabb2016-03-241-0/+44
| | | | is dirty
* Merge bgfx_shader into master, nw therealmogminer@gmail.com2016-03-231-63/+6
|\
| * Merge with master therealmogminer@gmail.com2016-03-211-15/+1
| |\
| * | Add bgfx_backend and bgfx_debug options, fix compile error on mac, nw therealmogminer@gmail.com2016-03-181-2/+0
| | |