summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
Commit message (Collapse)AuthorAgeFilesLines
* SDL: -video auto on macOS now selects BGFX rather than OpenGL for ↵GravatarGravatar arbee2019-11-161-3/+3
| | | | future-proofing [R. Belmont]
* opengl: work around Retina issue on macOS Catalina until SDL catches up [R. ↵GravatarGravatar arbee2019-11-161-1/+39
| | | | Belmont]
* Remove up to one frame of input latency. (#5901)GravatarGravatar antonioginer2019-11-1610-22/+51
| | | | | | | | | | * Remove up to one frame of input latency. Makes MAME virtually lagless on VRR monitors. * Use empty parentheses and clean interface member calls * Add new option -instant_blit to make this feature optional * Rename new option to -lowlatency, -ll
* winptty: don't create pipe unless requested (nw)GravatarGravatar cracyc2019-11-161-1/+2
| | | | plugins/discord: disconnect if timed out (nw)
* Sync bgfx, bx and bimg with upstream; fix the hlsl fs_chroma.sc matrix ↵GravatarGravatar Julian Sikorski2019-11-122-16/+8
| | | | | | | | | | | | | | transposition properly (#5875) * Sync bgfx with upstream revision 280420d * Sync bx with upstream revision 267727d * Sync bimg with upstream revision c1bab10 * Use bgfx helper functions to ensure correct matrix orientation * Rebuild hlsl chain
* bgfx: fix tgmj crash on resolution change (GitHub #5857) [Ryan HoltzGravatarGravatar Vas Crabb2019-11-061-0/+8
|
* bgfx: fix resource leak (nw) (#5820)GravatarGravatar algestam2019-10-281-0/+1
|
* srcclean (nw)GravatarGravatar Vas Crabb2019-10-264-29/+29
|
* (nw) keep a persistent temporary palette buffer in bgfx chain manager, back ↵GravatarGravatar Vas Crabb2019-10-252-6/+7
| | | | out some unintentional screen changes
* -bgfx: Uncomment D3D12 backend detection, as it apparently no longer crashes ↵GravatarGravatar MooglyGuy2019-10-231-5/+4
| | | | on exit on Win7, nw
* -bgfx: Fixed incorrect pitch of palette uploads, fixes 16-bit palettized ↵GravatarGravatar MooglyGuy2019-10-231-4/+8
| | | | textures in Vulkan backend on BGFX. nw
* -bgfx: Fix crash when scrolling current effect to 'none', nwGravatarGravatar MooglyGuy2019-10-221-1/+1
|
* -bgfx: Rework chain updating to minimize primlist locking, nwGravatarGravatar MooglyGuy2019-10-227-111/+186
|
* -bgfx: Fixed opengl backend, nwGravatarGravatar MooglyGuy2019-10-211-0/+2
|
* (nw) add doxygen comments for a bunch of core stuff, and convert a bunch of ↵GravatarGravatar Vas Crabb2019-10-163-260/+248
| | | | comments to doxygen format
* Check that m_display is not null to prevent crash (#5725)GravatarGravatar George McMullen2019-10-151-4/+20
| | | | | | | | | | | | | | | | | | | | * Check that m_display is not null to prevent crash https://mametesters.org/view.php?id=7372 * Probe method to check if X11 is actually being used As per: https://github.com/mamedev/mame/pull/5725#issuecomment-540004475 this will help MAME verify X11 has no inputs when X11 is not actually being used (e.g. on RetroPie where SDL display is RPI). * Fix issue where a lightgun with no name would return nullptr As suggested by https://github.com/mamedev/mame/pull/5725#issuecomment-539914514 , a bug in create_lightgun_device() returned nullptr if the lightgun had no name. Now it will create the device with a name using the lightgun's device index * Change older m_display change to assert This module can now be probed and disabled correctly if X11 is not being used. Removed the if statements that would be called every cycle (and fail silently) in favor of asserts, as MAME does not currently handle dynamic hardware configuration changes. * Fixing semicolons in asserts that were ifs
* Make shaders fixes (#5730)GravatarGravatar Julian Sikorski2019-10-131-14/+15
| | | | | | * Actually honor VERBOSE setting * Current shaders build setup is not capable of parallel build
* -bgfx: Do texture format conversion via a full-screen GPU pass. [Ryan Holtz]GravatarGravatar MooglyGuy2019-10-1319-60/+279
|
* WIP: sync bgfx, bx and bimg with latest upstream (#5723)GravatarGravatar Julian Sikorski2019-10-137-22/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Sync with bgfx upstream revision b91d0b6 * Sync with bx upstream revision d60912b * Sync with bimg upstream revision bd81f60 * Add astc-codec decoder * Rename VertexDecl to VertexLayout * Rename UniformType enum Int1 to Sampler. * Add NVN stub * Fix unused-const-variable error on macOS * Drop redundant explicit language parameters buildoptions_cpp are only applied to c++ files and buildoptions_objcpp are only applied to objective c++ files. As such, hardcoding -x offers no benefit while preventing overrides (such as one needed by 3rdparty/bgfx/src/renderer_vk.cpp on macOS) from working. * Re-introduce -x c++ in places where C code is compiled as C++ to prevent clang from throwing a warning * Build bgfx as Objective-C++ on macOS It is needed due to included headers * Enable Direct3D12 and Vulkan bgfx rendering backends * Enable building of spirv shaders * Properly escape /c in cmd call * Comment out dx12 bgfx renderer * Honor VERBOSE setting during shaders build * Only invert hlsl shader XYZ_TO_sRGB matrix for opengl * Add spirv shaders * OpenGL ES needs transposed matrix too * Metal needs transposed matrix as well
* (nw) misc cleanup:GravatarGravatar Vas Crabb2019-10-111-3/+3
| | | | | * imagedev/cassette: add bitwise operators for cassette_state so a lot of ugly casts can go away * audio/leland.cpp, cubeqst.cpp: make better use of loops in machine configuration
* SDL: support RRGGBB00 format used by ARM Mali GPUs [R. Belmont]GravatarGravatar arbee2019-10-061-0/+4
|
* Make osd_printf_* use util/strformat semantics.GravatarGravatar Vas Crabb2019-09-2620-126/+121
| | | | | | | | | | | | | | | | | (nw) This has been a long time coming but it's here at last. It should be easier now that logerror, popmessage and osd_printf_* behave like string_format and stream_format. Remember the differences from printf: * Any object with a stream out operator works with %s * %d, %i, %o, %x, %X, etc. work out the size by magic * No sign extending promotion to int for short/char * No widening/narrowing conversions for characters/strings * Same rules on all platforms, insulated from C runtime library * No format warnings from compiler * Assert in debug builds if number of arguments doesn't match format (nw) Also removed a pile of redundant c_str and string_format, and some workarounds for not being able to portably format 64-bit integers or long long.
* srcclean (nw)GravatarGravatar Vas Crabb2019-09-222-4/+4
|
* (nw) get rid of the rest of assert_always - it's better to be explicit about ↵GravatarGravatar Vas Crabb2019-09-204-17/+25
| | | | what this thing is supposed to do
* OSD_MAC: don't run MAME on a thread, it upsets the debugger very much (nw)GravatarGravatar arbee2019-09-175-54/+65
|
* OSD_MAC: window now visible and has a title, but doesn't render (nw)GravatarGravatar arbee2019-09-161-7/+17
|
* Fix typo (nw)GravatarGravatar R. Belmont2019-09-161-1/+1
|
* Fix compile (nw)GravatarGravatar Olivier Galibert2019-09-161-3/+2
|
* A few files that got missed (nw)GravatarGravatar arbee2019-09-154-1/+251
|
* Preliminary Mac native OSD. Not working yet. [R. Belmont]GravatarGravatar arbee2019-09-1518-4/+2223
| | | | | | | | This will compile, link, and run a driver all the way to the first info screen, provided you use -video bgfx. However, although there's a valid NSWindow created, it never actually appears on screen for unknown (but likely silly) reasons. Inputs are not implemented and fullscreen exists but is untried.
* Changed osd_get_clipboard_text() to return std::string (#5615)GravatarGravatar npwoods2019-09-116-52/+40
| | | | | | | | | | * Changed osd_get_clipboard_text() to return std::string This change has only been tested on Windows. The Un*x/Mac versions were made blindly; they might not even build. This needs to be checked prior to merging. * Fixing Mac OS X build (hopefully)
* Fix QT debugger (nw)GravatarGravatar AJR2019-09-101-3/+3
|
* Use std::forward_list for breakpoint and registerpoint lists (nw)GravatarGravatar AJR2019-09-108-88/+32
|
* gdbstub: more improvements (#5569)GravatarGravatar Ramiro Polla2019-08-311-29/+155
| | | | | | | | | | | | | | | | | | | | | | | | | * gdbstub: small cleanup and clarification Old GDBs expected the regnum values for some registers to be hardcoded. This is no longer the case with GDB clients that support target.xml. We expect the GDB client to support target.xml (and won't support the 'g', 'G', 'p', and 'P' commands unless it is sent). * gdbstub: add mips (tested with indy_4610) * gdbstub: add m68k (tested with macii) * gdbstub: add support for executing MAME debugger commands from the GDB client It's now possible to send MAME debugger commands, such as "cheatinit", "snap", etc... Try not to use "bpset" and such commands, they may confuse the GDB client. Also don't use commands such as "step" and "go", they will definitely confuse the GDB client. * gdbstub: fatalerror() when socket can't be opened
* srcclean (nw)GravatarGravatar Vas Crabb2019-08-252-27/+27
| | | | I'm assuming atronic.cpp was supposed to be Windows-1252 with Euro currency symbol encoding. Everyone please use UTF-8 for source files.
* Fix Solaris 2.11 (non-Oracle)GravatarGravatar Rick V2019-08-193-2/+11
|
* debuggdbstub: uncomment parameters (nw)GravatarGravatar Patrick Mackinlay2019-08-151-3/+3
| | | | These unused parameters don't cause any warnings, so I suggest they shouldn't be commented; make the implementations match their declarations.
* gdbstub: add z80 and m6502GravatarGravatar Ramiro Polla2019-08-121-0/+53
| | | | | | | | | | | | z80 was tested with pacman and m6502 was tested with apple2e. Side-effects must be disabled before reading memory, otherwise apple2e starts failing after the first read to 0xc080. Since GDB doesn't support those processors, I made up the features name with "mame.<cpuname>". I also had to choose the registers to export in the target.xml file, and since I don't have any experience with these processors I don't know if I made the best choice.
* gdbstub: added new GDB stub debugger (#5456)GravatarGravatar Ramiro Polla2019-08-113-0/+1137
| | | | | | | | | | | | * gdbstub: added new GDB stub debugger This debugger can be used to connect to an external debugger that communicates using the GDB Remote Serial Protocol, such as GDB itself or many other GDB frontends. Currently i386 (ct486), arm7 (gba), and ppc (pmac6100) are supported. * gdbstub: enable GDB stub debugger in mac and windows builds
* Removed some dead static variables (nw) (#5458)GravatarGravatar npwoods2019-08-111-9/+1
|
* Fix build in newer Emscripten versions (nw)GravatarGravatar Justin Kerk2019-08-084-6/+6
|
* Creating an -attach_window command line parameter on Windows to attach to an ↵GravatarGravatar npwoods2019-08-049-18/+173
| | | | | | | | | | | | | | existing window (#5381) * Creating an -attach_window command line parameter on Windows to attach to an existing window * Moved -attach_window option to Windows-specific code * Created an osd_set_aggressive_input_focus() function and exposed to LUA * Created a dummy implementation of osd_set_aggressive_input_focus() for SDL
* Use canonical spelling of "canonical" (nw)GravatarGravatar AJR2019-08-022-2/+2
|
* -scc68070: Moved Quizard MCU HLE from SCC68070 device to cdi.cpp and ↵GravatarGravatar MooglyGuy2019-07-241-0/+151
| | | | converted SCC68070 to use logmacro. [Ryan Holtz]
* Merge pull request #5380 from npwoods/winwindow_has_focus_return_boolGravatarGravatar R. Belmont2019-07-224-7/+7
|\ | | | | Changed winwindow_has_focus() to return bool
| * Changed winwindow_has_focus() to return boolGravatarGravatar npwoods2019-07-224-7/+7
| |
* | Merge pull request #5379 from npwoods/draw_video_contents_take_boolGravatarGravatar R. Belmont2019-07-224-7/+7
|\ \ | | | | | | Changing win_window_info::draw_video_contents()'s update parameter to be bool
| * | Changing win_window_info::draw_video_contents()'s update parameter to beGravatarGravatar npwoods2019-07-224-7/+7
| |/ | | | | | | bool
* / Removing a stray (likely vestigial) variable from window.cpp (nw)GravatarGravatar npwoods2019-07-221-8/+0
|/
* Suggestion for very-low-latency mode on portaudioGravatarGravatar Eric Vidal2019-07-141-8/+27
| | | | | | | | | | | | | | - Needed to keep audio in sync when playing rhythm game machines such as konami system 573. This is because the lowest audio_latency currently supported (audio_latency 1) introduces at least 10 ms of variable latency. I am unsure how to go about this without breaking backward compatibility so I set it to work only when audio_latency is 0 (which was previously ignored by mame itself and was treated equivalent to audio_latency 1). I am aware that setting audio_latency to 0 is not supported by many mame frontends, but this change seems natural. Otherwise, would it be better to add a new mame.ini option, or to automatically enable this low-latency mode when pa_latency is set lower than, say, 0.01 (10ms), which would break people's configurations if they already rely on the old behavior?