summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* input_sdl.cpp: Ignore joystick buttons beyond maximum supported number. Vas Crabb2019-12-071-2/+5
| | | | * Note that the code to map excess buttons to switches doesn't actually do anything useful while INPUT_MAX_BUTTONS and MAX_BUTTONS happen to be defined to the same number.
* osd/sdl/window.cpp: Remove misleading comments. (nw) couriersud2019-11-271-14/+0
|
* netlist: Revert development code committed by accident. (nw) couriersud2019-11-262-16/+2
|
* netlist: move nl_examples to src/lib/netlist/examples. (nw) couriersud2019-11-252-2/+16
| | | One folder less in the top-level.
* Clean up render_screen_list code, replacing simple_list with std::list (nw) AJR2019-11-242-2/+2
|
* -bgfx: Fixed Github issue #5961. [Ryan Holtz] MooglyGuy2019-11-241-2/+2
|
* Opengl: Apply line width provided by renderer. [Couriersud] couriersud2019-11-241-0/+1
|
* bgfx: Fix edge case around B/C/G settings. [Couriersud] couriersud2019-11-241-1/+2
| | | | | | If e.g. kidniki is started with default gamma (1.0), changing gamma with slider doesn't work. Setting to a gamma <> 1 and restarting MAME will apply the gamma. This commit fixes this.
* srcclean (nw) Vas Crabb2019-11-253-3/+3
|
* -bgfx: Fixed Github issues #5830 and #5956. [Ryan Holtz] MooglyGuy2019-11-2512-47/+119
|
* srcclean and indentation cleanup (nw) Vas Crabb2019-11-241-22/+22
|
* Opengl render driver: fix bug preventing adjustment of ... [Couriersud] couriersud2019-11-241-1/+1
| | | | | | | | | | | | gamma, brightness and contrast. Starting MAME with defaults, i.e. gamma == 1.0, no rgb palette will be allocated. If gamma than is changed, a new palette will be allocated. But the texture will not be updated because the palette is not checked. This fix will check for palette changes. Note: if the palette is changed inplace, i.e. without reallocation, this will fail. The correct fix would be that the texture palette is not only a pointer to rgb_t * but to texture_palette_type. texture_palette_type would hold the pointer, the length and a sequential id which is checked in addition to pointer equality.
* -bgfx: Fixed broken rendering when using bgfx_screen_chains none, nw mooglyguy2019-11-223-7/+28
|
* stupid syntax error (nw) Vas Crabb2019-11-221-1/+1
|
* sound/coraudio: get rid of global_alloc/global_free (nw) Vas Crabb2019-11-221-60/+48
|
* UI input menu: treat codes containing a postive and negative of the same ↵ Vas Crabb2019-11-2110-12/+14
| | | | | | | | thing as invalid (e.g. A S not A) ioport.cpp: * better than 50% reduction in compile time, and better locality for static data * better encapsulation, const correctness and noexcept usage
* SDL: recognize GUIDs for joysticks, allows stable input ID mapping [R. Belmont] arbee2019-11-171-5/+13
|
* mac: fix copy/paste error, get rid of allocWithZone as it's ignored on ↵ Vas Crabb2019-11-184-8/+8
| | | | 64-bit ABI (nw)
* missed a couple of Mac debugger things (nw) Vas Crabb2019-11-182-28/+24
|
* missed one Windows debugger thing (nw) Vas Crabb2019-11-181-1/+1
|
* misc cleanup: Vas Crabb2019-11-1823-87/+106
| | | | | | | * Got rid of some more simple_list in core debugger code * Fixed a buffer overrun in wavwrite (buffer half requried size) * Slightly reduced dependencies and overhead in wavwrite * Made new disassembly windows in Qt debugger default to current CPU
* SDL: -video auto on macOS now selects BGFX rather than OpenGL for ↵ arbee2019-11-161-3/+3
| | | | future-proofing [R. Belmont]
* opengl: work around Retina issue on macOS Catalina until SDL catches up [R. ↵ arbee2019-11-161-1/+39
| | | | Belmont]
* Remove up to one frame of input latency. (#5901) 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) 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 ↵ 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 Holtz Vas Crabb2019-11-061-0/+8
|
* bgfx: fix resource leak (nw) (#5820) algestam2019-10-281-0/+1
|
* srcclean (nw) Vas Crabb2019-10-264-29/+29
|
* (nw) keep a persistent temporary palette buffer in bgfx chain manager, back ↵ Vas Crabb2019-10-252-6/+7
| | | | out some unintentional screen changes
* -bgfx: Uncomment D3D12 backend detection, as it apparently no longer crashes ↵ MooglyGuy2019-10-231-5/+4
| | | | on exit on Win7, nw
* -bgfx: Fixed incorrect pitch of palette uploads, fixes 16-bit palettized ↵ MooglyGuy2019-10-231-4/+8
| | | | textures in Vulkan backend on BGFX. nw
* -bgfx: Fix crash when scrolling current effect to 'none', nw MooglyGuy2019-10-221-1/+1
|
* -bgfx: Rework chain updating to minimize primlist locking, nw MooglyGuy2019-10-227-111/+186
|
* -bgfx: Fixed opengl backend, nw MooglyGuy2019-10-211-0/+2
|
* (nw) add doxygen comments for a bunch of core stuff, and convert a bunch of ↵ Vas Crabb2019-10-163-260/+248
| | | | comments to doxygen format
* Check that m_display is not null to prevent crash (#5725) 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) 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] MooglyGuy2019-10-1319-60/+279
|
* WIP: sync bgfx, bx and bimg with latest upstream (#5723) 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: 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] arbee2019-10-061-0/+4
|
* Make osd_printf_* use util/strformat semantics. 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) Vas Crabb2019-09-222-4/+4
|
* (nw) get rid of the rest of assert_always - it's better to be explicit about ↵ 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) arbee2019-09-175-54/+65
|
* OSD_MAC: window now visible and has a title, but doesn't render (nw) arbee2019-09-161-7/+17
|
* Fix typo (nw) R. Belmont2019-09-161-1/+1
|
* Fix compile (nw) Olivier Galibert2019-09-161-3/+2
|
* A few files that got missed (nw) arbee2019-09-154-1/+251
|