summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/lib/osdobj_common.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Patched up some gaps in functionality and fixed some bugs. Vas Crabb2022-09-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ui: Added some missing functionality: * Added an option to copy input device IDs to the relevant menus. * Added an item for setting the software lists files path (-hashpath) to the folder setup menu. * Allow pasting text from clipboard in most places that allow typing (searching, entering filenames, entering barcodes). * Changed the software selection menu heading to be a bit less misleading. * Made barcode menu less eager to rebuild itself unnecessarily, and removed some confusing and apparently pointless code. Exposed more Lua bindings: * Added low-level palette objects. * Added indexed bitmap types. * Added a bitmap method for extracting pixels from a rectangular area as a packed binary string. * Changed screen device pixels method to return width and height in addition to the pixels. osd: Added some functionality and cleaned up a little: * Added a function for copying text to the clipboard. * Moved function for converting Windows error codes to standard error conditions to winutil.cpp so it can be used from more places. * Removed duplicate declaration of osd_get_clipboard_text and made the function noexcept (including fixing implementations). * Made macOS implementation of osd_get_clipboard_text skip the encoding conversion if it finds UTF-8 text first. * Changed the default -uimodekey setting so it doesn't lose the "not shift" that stops the default from interfering with UI paste. Various bug fixes: * util/unicode.cpp: Fixed the version of utf8_from_uchar that returns std::string blowing up on invalid codepoints. * util/bitmap.h: Fixed wrapping constructors for indexed bitmaps taking the wrong parameter type (nothing was using them before). * util/bitmap.cpp: Fixed potential use-after-free issues with bitmap palettes. * emu/input.cpp, emu/inputdev.cpp: Log 1-based device numbers, matching what's shown in the internal UI and used in tokens in CFG files. * emu/emumem.cpp: Added the bank tag to a fatal error message where it was missing. docs: Reworked and expanded documentation on configuring stable controller IDs. For translators, the changes are quite minor: * There's a menu item for copying a device ID to the clipboard, and associated success/failure messages. * There's the menu item for setting the software list file search path. * One of the lines in the software selection menu heading has changes as it could be interpreted as implying it showed a software list name.
* OSD/network interface cleanup AJR2022-08-281-0/+1
| | | | | | | - Move osd_midi_device from osdcore.h to osdepend.h - Move osd_list_network_adapters from osdcore.h to osdnet.h (was already defineduniquely in osdnet.cpp) - Move #include <cstdarg> from osdcore.h to emu.h - Remove dinetwork.h from emu.h
* Clean up #includes in src/osd (#10029) ajrhacker2022-07-041-2/+26
| | | | | * Clean up #includes in src/osd * render/bgfx/view.cpp: Add license header
* util/options.h: Removed legacy OPTION_* option type constants. (#9851) npwoods2022-05-301-116/+116
| | | These constants were polluting the global namespace.
* -bgfx: Added default LUT PNG, fixes LUT-effect crash. Fixed external texture ↵ MooglyGuy2022-03-121-1/+1
| | | | loading, restoring HQx filters. [Ryan Holtz] (#9401)
* Remove uwp specific sources Miodrag Milanovic2021-10-261-2/+0
|
* Updated help text for bgfx_backend Robbbert2021-08-131-1/+1
|
* sound: Pulseaudio support Olivier Galibert2021-04-161-0/+3
|
* Changed audio_latency valid range from 1-5 to 0-5 (#7916) 9871238791132021-04-011-1/+1
|
* Much more core std::string_view modernization AJR2021-01-201-1/+1
| | | | | | | | | | | | | | | - Remove corestr.h from emu.h; update a few source files to not use it at all - Change strtrimspace, strtrimrightspace and core_filename_extract_* to be pure functions taking a std::string_view by value and returning the same type - Change strmakeupper and strmakelower to be pure functions taking a std::string_view and constructing a std::string - Remove the string-modifying version of zippath_parent - Change tag-based lookup functions in device_t to take std::string_view instead of const std::string & or const char * - Remove the subdevice tag cache from device_t (since device finders are now recommended) and replace it with a map covering directly owned subdevices only - Move the working directory setup method out of device_image_interface (only the UI seems to actually use the full version of this) - Change output_manager to use std::string_view for output name arguments - Change core_options to accept std::string_view for most name and value arguments (return values are still C strings for now) - Change miscellaneous other functions to accept std::string_view arguments - Remove a few string accessor macros from romload.h - Remove many unnecessary c_str() calls from logging/error messages
* Got rid of global_alloc/global_free. Vas Crabb2020-10-031-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | The global_alloc/global_free functions have outlived their usefulness. They don't allow consistently overriding the default memory allocation behaviour because they aren't used consistently, and we don't have standard library allocator wrappers for them that we'd need to use them consistently with all the standard library containers we're using. If you need to change the default allocator behaviour, you can override the new/delete operators, and there are ways to get more fine-grained control that way. We're already doing that to pre-fill memory in debug builds. Code was already starting to depend on global_alloc/global_free wrapping new/delete. For example some parts of the code (including the UI and Windows debugger) was putting the result of global_alloc in a std::unique_ptr wrappers without custom deleters, and the SPU sound device was assuming it could use global_free to release memory allocated with operator new. There was also code misunderstanding the behaviour of global_alloc, for example the GROM port cartridge code was checking for nullptr when a failure will actually throw std::bad_alloc. As well as substituting new/delete, I've made several things use smart pointers to reduce the chance of leaks, and fixed a couple of leaks, too.
* fixed some modernize-use-auto clang-tidy warnings (nw) (#6238) Oliver Stöneberg2020-01-301-2/+2
|
* video: higher maximum prescale (nw) hap2020-01-051-1/+1
|
* UI input menu: treat codes containing a postive and negative of the same ↵ Vas Crabb2019-11-211-1/+1
| | | | | | | | 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
* Make osd_printf_* use util/strformat semantics. Vas Crabb2019-09-261-17/+20
| | | | | | | | | | | | | | | | | (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.
* Fix typo (nw) R. Belmont2019-09-161-1/+1
|
* A few files that got missed (nw) arbee2019-09-151-1/+2
|
* gdbstub: added new GDB stub debugger (#5456) Ramiro Polla2019-08-111-0/+2
| | | | | | | | | | | | * 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
* (nw) Clean up the mess on master Vas Crabb2019-03-261-17/+15
| | | | | | | | | | | | | 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-15/+17
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* apply -verbose after processing command-line options and after first pass ↵ Vas Crabb2019-01-121-17/+15
| | | | over .ini files (nw)
* make dsound default over xaudio2 (nw) hap2018-12-141-1/+1
| | | | | | | Reasoning: xaudio2 module was completely disabled for over 2 years and unmaintained. Using "auto", MAME actually chose dsound as default. Plus I seem to be getting random buffer underflows/overflows with it, it needs to be more stable before it can be default. related: https://github.com/mamedev/mame/commit/8889f182f1af3e4b4b61c4a82559ada24d30e671
* clean up and improve option descriptions Vas Crabb2018-12-131-16/+16
|
* dec8.cpp: Fix regression with ghostb, srdarwin (nw) Scott Stone2018-12-091-1/+1
| | | | Some misc text changes to certain trigger usage info (nw)
* HLSL Color Transforms and 3D LUT (#4043) Westley M. Martinez2018-10-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove broken scanline uniform from post_pass * Add 3D LUT to HLSL * Allow individual LUTs for screen and UI * WIP: Port 3D LUT to BGFX * Finish porting LUT to BGFX * Add individual phosphor color conversion for HLSL new file: hlsl/chroma.fx Shader for converting xyY3 to sRGB modified: hlsl/phosphor.fx Minor changes to emphasize idea that phosphors are color agnostic modified: hlsl/post.fx Conversion from signal RGB to xyY3 modified: src/osd/modules/render/d3d/d3dhlsl.cpp modified: src/osd/modules/render/d3d/d3dhlsl.h modified: src/osd/windows/winmain.cpp modified: src/osd/windows/winmain.h * Add phosphor examples and update presets * Port phosphor color shaders to BGFX * Fix missing newlines at EOF
* Fix exception on exit (nw) AJR2018-01-241-2/+0
|
* Eliminate core_strdup (nw) AJR2018-01-241-5/+6
|
* Add Bicubic Shader to OpenGL Backend Aaron2017-12-301-1/+1
| | | | | | | | This shader uses the equation described by R. Keys in the paper 'Cubic Convolution Interpolation for Digital Image Processing' which is, in this case, the same as a Catmull-Rom spline. This produces a sharper upscaled image than bilinear filtering. The new shader is selected by setting gl_glsl_filter to 2. Consequently, gl_glsl_filter is now treated as an int rather than a boolean. Also fixed a variable name problem in the code guarded by GLSL_SOURCE_ON_DISK.
* Top prescale value allowed via command-line is 3 (not 4) (nw) Scott Stone2017-10-181-1/+1
|
* Fix for prescale value entry (MT#6720) (nw) Scott Stone2017-10-181-1/+1
|
* fix allowed latency range intealls2017-01-171-1/+1
|
* Initial PortAudio backend with build script changes to support library ↵ inte alls2017-01-111-0/+10
| | | | version 20161030
* UWP: Enable gamepad support and update keyboard support (nw) Brad Hughes2016-11-141-0/+1
|
* Add basic keyboard input to UWP (nw) Brad Hughes2016-11-111-0/+1
|
* Small cleanup (nw) Miodrag Milanovic2016-11-111-3/+2
|
* No need for osd_malloc, osd_malloc_array and osd_free (nw) Miodrag Milanovic2016-11-111-1/+1
| | | | MALLOC_DEBUG not applicable anymore since we use new to allocate in 99.9% of cases
* Do not use FUNC in delegate where applicable (nw) Miodrag Milanovic2016-11-061-3/+3
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-3/+3
| | | | | 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-1/+19
|
* Patch to fix the Gun#2 not working in Mame, please refer to Bug id 6185 on ↵ Patrick Lessard2016-08-021-0/+1
| | | | Mametesters.
* Restore ability to supply explicit name for bgfx AVI output file, auto ↵ Vas Crabb2016-07-071-0/+1
| | | | causes it to generate ascending snap names
* Remove bgfx_avi_name and hlsl_write options Giuseppe Gorgoglione2016-07-041-1/+0
| | | | | | Now the filenames for movies recorded by HLSL and BGFX renderers are automatically generated just like the ones for movies and snapshots recorded by the video core. They are generated according to the "snapname" template (eg. by default <snap_folder>/<device_name>/<numeric_index.avi>, so you can revert to the old behavior (why?) just setting "snapname bgfx.avi" or "snapname hlsl.avi". The main advantage is that now you can record as many movies as you want during a single gaming session without much hassle (previously you had to move or rename the old movie file by hand before recording a new one).
* A few minor input fixes and cleanups Brad Hughes2016-06-251-13/+0
| | | | | | - input modules exit() is called twice. Remove the unnecessary input_exit() method - removed unnecessary pointer init in handle_input_event and should_hide_mouse - When registering event callbacks in SDL, don't assume the SDL enum values are int-sized
* Move window_list to osd_common_t Brad Hughes2016-06-111-0/+2
|
* Fixed video mode opengl duplicated in SDL build. (nw) dankan18902016-06-071-3/+0
|
* Placed back old output system as module "-output windows" need more things ↵ Miodrag Milanovic2016-06-051-0/+2
| | | | cleaned (nw)
* 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)
* 1. fixed title of fr2; 2. Fixed access violation after getting: Robbbert2016-05-211-4/+8
| | | | | | Proposed video mode not supported on device \\.\DISPLAY1 Unable to initialize Direct3D. Fatal error: Unable to complete window creation
* no deps between osd and frontend, internal debugger removed (nw) Miodrag Milanovic2016-05-061-1/+0
|
* Various cleanups suggested by static analyzer (nw) Miodrag Milanovic2016-04-241-2/+2
|