summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl
Commit message (Collapse)AuthorAgeFilesLines
* (nw) Clean up the mess on master Vas Crabb2019-03-261-0/+1
| | | | | | | | | | | | | This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at 598cd5227223c3b04ca31f0dbc1981256d9ea3ff. Before pushing, please check that what you're about to push is sane. Check your local commit log and ensure there isn't anything out-of-place before pushing to mainline. When things like this happen, it wastes everyone's time. I really don't need this in a week when real work™ is busting my balls and I'm behind where I want to be with preparing for MAME release.
* Revert "conflict resolution (nw)" andreasnaive2019-03-251-1/+0
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* Show video-mode option 'accel' in help and GUI Andreas Müller2019-02-171-0/+1
| | | | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
* clean up and improve option descriptions Vas Crabb2018-12-131-5/+5
|
* 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
|
* How to remove unwanted macros, or: getting out of discovered "check" (nw) AJR2018-06-291-0/+1
| | | | This fixes the OS X build.
* abusing include guards is bad mckay (nw) smf-2017-12-261-1/+0
|
* Fixed an options overhaul regression (#2530) npwoods2017-10-061-0/+10
| | | | | | | | | | | | This crash (discovered by Wizz) had the following symptoms: 1. Start MAME 2. Choose "Configure Machine" 3. Choose "Video Options" CRASH This was the result of the options editor not having a fully formed list of options where it was expecting one. The fix is to change the declaration of emu_options to one that have full OSD options (it is possible that SDLMAME needs something slightly different) I created a osd_setup_osd_specific_emu_options(emu_options &) function that given an emu_options, will slap on system specific options. I see this as only marginally less gross, and I have zero opinion on whether this should be changed to return an emu_options (rather than have a reference parameter), be a static method on emu_options, or what have you.
* Attempted to sanitize/rationalize how we access UTF-8 command line arguments ↵ npwoods2017-09-181-7/+1
| | | | | | | | | | | (#2532) Specifically, this creates a call osd_get_command_line() that returns UTF-8 command line arguments as std::vector<std::string>. On non-Windows platforms, this does nothing more than build the vector. On Windows, this invokes GetCommandLineW() and CommandLineToArgvW(). This also attempts to unwind usage of wmain()/_tmain() on Windows, which is not standard. Related to this, this fixes a bug in Imgtool; specifically, non-7 bit ASCII was not being handled correctly in Windows. This is really an admission that the way that Windows handles Unicode and command line arguments sucks, and it is my belief that having a wmain() or _tmain() declaration specific for Windows is a worse solution. C'est la vie. I'm very open to the idea that src/osd/osdcore.[cpp|h] is not the best place to do this. Let me know if I should move it.
* Modification for Android build (NDK r14b, build-tools 21.1.2 and gradle ↵ Miso Kim2017-08-231-0/+3
| | | | 2.2.1) (#2585)
* 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.
* Overhaul to how MAME handles options, take two (#2341) npwoods2017-06-251-6/+4
|
* 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.
* Revert "Overhaul to how MAME handles options (#2260)" Vas Crabb2017-05-071-4/+6
| | | | | | | | | | | | This reverts commit 536990e77b49ccc50ef275bfbf1018cc29c16154. Conflicts: src/frontend/mame/mame.cpp Sorry, but this change was half-baked. It breaks a lot of existing functionality and clearly hasn't been tested in more than a tiny subset of use cases. Please play this work back onto your own branch, and test it before submitting another PR.
* Overhaul to how MAME handles options (#2260) npwoods2017-05-051-6/+4
| | | | | | | | | | | | This is an overhaul to how MAME handles options to provide a better foundation for what MAME is already doing in practice. Previously, core_options was designed to provide an input/output facility for reading options from the command line and INI files. However, the current needs (image/slot/get_default_card_software calculus and MewUI) go way beyond that. Broadly, this PR makes the following changes: * core_options now has an extensibility mechanism, so one can register options that behave dramatically differently * With that foundation, emu_options now encapsulates all of the funky image/slot/get_default_card_software calculus that were previously handled by static methods in mameopts.cpp. Changes to emu_options should not automatically cascade in such a way so that it stays in a consistent state * emu_options no longer provides direct access to the slot_options/image_options maps; there are simpler API functions that control these capabilities * Many core_options functions that expose internal data structures (e.g. - priority) that were only really needed because of previous (now obsolete) techniques have been removed. * core_options is now exception based (rather than dumping text to an std::string). The burden is on the caller to catch these, and discern between warnings and errors as needed. Obviously this is a risky change; that's why this is being submitted at the start of the dev cycle.
* srcclean (nw) Vas Crabb2017-03-261-1/+1
|
* Fixed SDL build on win32 and zexall build (nw) Miodrag Milanovic2017-03-261-2/+8
|
* Move special windows.h include directives to build defines (nw) Brad Hughes2016-12-282-2/+0
|
* Change window handle storage to template instead of void* (nw) (#1725) Brad Hughes2016-11-172-20/+20
| | | | * 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]
* Cleanup linux OSD (nw) Miodrag Milanovic2016-10-221-2/+2
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-222-11/+11
| | | | | 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-143-208/+4
|
* 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)
* Assorted typos fixed (MT #6295, 6296) (nw) Scott Stone2016-07-151-1/+1
|
* fix build on debian ppc64 with -maltivec (nw) Vas Crabb2016-07-121-0/+5
| | | | | | | problem is caused by <SDL2/SDL_cpuinfo.h> puling in <altivec.h> which #defines vector, pixel and bool however when the compiler is in Apple Altivec mode, these are context-sensitive keywords and don't need to be #defined we never need the #defines in our own code because we use the GCC-specific __vector instead of vector so we trick the header to think the compiler is in Apple Altivec mode to suppress the #defines
* Make monitor list a list of shared_ptr like window_list (nw) Brad Hughes2016-07-013-31/+32
|
* Cleanup and version bumpmame0175 Miodrag Milanovic2016-06-291-2/+2
|
* Fix mouse behavior on OSX Brad Hughes2016-06-252-7/+27
|
* POSIX implementation for new directory read features, cleanup of Windows ↵ Vas Crabb2016-06-251-316/+0
| | | | implementation, return directory handle as smart pointer, fix full build [Vas Crabb]
* fix clang build (nw) R. Belmont2016-06-111-1/+1
|
* Move window_list to osd_common_t Brad Hughes2016-06-112-10/+10
|
* Unify window_list in Windows and SDL OSD Brad Hughes2016-06-103-27/+14
|
* Major refactoring of debugger core [Ryan Holtz] therealmogminer@gmail.com2016-06-082-15/+18
| | | | | | | | * Eliminate globals/file statics * Remove lots of stuff from global scope * Use std::function for custom command registration * Eliminate some trampolines * Build fixes from Vas Crabb and balr0g
* Fixed video mode opengl duplicated in SDL build. (nw) dankan18902016-06-071-0/+2
|
* 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-182-0/+3
| | | | | | - 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.
* Added ability to create standalone emulators, added zexall as example (nw) Miodrag Milanovic2016-05-081-1/+1
|
* no deps between osd and frontend, internal debugger removed (nw) Miodrag Milanovic2016-05-061-3/+1
|
* No SDL 1.2 support anymore (nw) Miodrag Milanovic2016-05-061-8/+0
|
* fix windows SDL build (nw) Miodrag Milanovic2016-05-061-1/+1
|
* RIP sdlinc.h couriersud2016-05-064-15/+3
|
* Remove dead code left over from "-mt". [Couriersud] couriersud2016-05-062-341/+107
|
* Cleanups and version bumpmame0173 Miodrag Milanovic2016-04-273-6/+6
|
* Reset menu on toggle fullscreen [barlog] Miodrag Milanovic2016-04-261-0/+4
|