summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
Commit message (Collapse)AuthorAgeFilesLines
* -ui: Made zoom controls a bit more intuitive. Vas Crabb2021-09-068-44/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The UI controls are described as zoom in/out, but they had the opposite effect on the palette and tile viewers. That has been changed to make them consistent with the tilemap viewer. * Made the default zoom key not act as a toggle. People are familiar with the function of Ctrl+0/=/- in web browsers, so making them behave similarly in MAME should make it more approachable. Also added the default zoom key to the relevant documentation page. * Implemented the default zoom key for the palette and tile viewers. * In the tilemap viewer, if the view is in default expand to fit mode, zoom in/out starting from the actual zoom ratio. Once again, this behaves more like the zoom controls in a web browser displaying an image so it should be more intuitive. * Made more messages from the tilemap viewer localisable. -util/zippath.cpp: Fixed MT08074. * There were multiple issues at play here. After #8443 was applied, is_root was simply never returning true on Windows, as OSD_WINDOWS isn't actually defined outside libosd and libocore. This caused phantom parent items to appear in disk roots on Windows, but it meant that the check in zippath_resolve would always fail so the trailing backslash would be trimmed. Fixing the macro test in is_root meant the trailing backslash from C:\ would no longer be trimmed, which caused the stat in zippath_resolve to fail. -bigbord2.cpp: Hooked up floppy DRQ that had somehow got lost. -Reduced tag map lookups in several drivers and devices. -util/coretmpl.h: Removed an overload of bitswap that can be avoided using if constexpr. -Added doxygen comments to some classes, and fixed several doxygen warnings. -util, osd: Test for _WIN32 rather than WIN32. * In C++17 mode, WIN32 is no longer a predefined macro, although various things in 3rdparty define it to maintain legacy support. We're better off moving forward anyway for when WIN32 disappears entirely. (WIN32 is not a reserved name, while _WIN32 is, starting with an underscore follwed by an uppercase letter.)
* fixes for building with clang 12.0.1 on windows smf-2021-09-042-3/+1
|
* -bgfx: Switched fs_blit_palette16 to expand bitmap_ind16 contents to R8. ↵ MooglyGuy2021-09-0410-43/+75
| | | | Fixes vertical off-by-one shift in games with an odd pixel count along X. [Ryan Holtz] (#8528)
* Use D32F texture format instead of D24, should fix AMD hardware (#8516) Julian Sikorski2021-08-301-2/+2
|
* -bgfx: Fixed UV rounding errors in fs_blit_palette16; Switched back to ↵ MooglyGuy2021-08-302-22/+10
| | | | direct texture upload rather than CPU copy. (#8505) [Ryan Holtz]
* debugger/debuggdbstub.cpp: Initialise m_readbuf_state on construction. (#8498) Alex Siryi2021-08-291-0/+1
|
* osd: Return would block when reading a socket with no data available - no ↵ Vas Crabb2021-08-272-2/+2
| | | | error can be confused with remote shutdown.
* -bgfx: Revised fs_blit_palette16 to not use pixel rounding. Fixes issues in ↵ MooglyGuy2021-08-242-20/+32
| | | | carpolo, kncljoe, and others. [Ryan Holtz] (#8488)
* formats, osd, util: Started refactoring file I/O stuff. (#8456) Vas Crabb2021-08-2217-682/+531
| | | | | | | | | Added more modern generic I/O interfaces with implementation backed by stdio, osd_file and core_file, replacing io_generic. Also replaced core_file's build-in zlib compression with a filter. unzip.cpp, un7z.cpp: Added option to supply abstract I/O interface rather than filename. Converted osd_file, core_file, archive_file, chd_file and device_image_interface to use std::error_condition rather than their own error enums. Allow mounting TI-99 RPK from inside archives.
* srcclean for upcoming release Vas Crabb2021-08-221-2/+2
|
* BGFX fixes for various backends (#8469) [Ryan Holtz] MooglyGuy2021-08-2017-80/+229
| | | | * Fixed palette and UYVY conversion in all backends. Fixes MT07760. * Fixed a typo in targetmanager.cpp, thanks LN for the heads-up.
* Use log write calls directy on android Miodrag Milanovic2021-08-171-6/+6
|
* debugger/win/memorywininfo.cpp: Fix build AJR2021-08-161-7/+7
|
* dvmemory: Substitute strongly typed enum for magic numbers specifying data ↵ AJR2021-08-166-66/+82
| | | | format
* Use std::clamp in more source files AJR2021-08-156-10/+10
|
* Debugger-related feature removals and cleanup AJR2021-08-151-1/+2
| | | | | | | | - Remove the hotspot read tracker. This was never robustly implemented, but changes to the memory system made it much less useful, and the "speedup opportunities" which it aimed to determine are not very important from a current emulation standpoint. - Remove the CURSP/GENSP state symbol and the generic sp() getter. Stacking semantics vary too much between CPU architectures for this to be of much use. (A "SP" symbol has been added to a few CPU cores whose stack pointers were otherwise not being registered.) - Remove the cached pointer to device_state_interface and the state() fast accessor from device_t. Most users of device_state_interface either already had a pointer to the specific CPU device type or needed to check first for the presence of the interface. - Change the PC memory write tracker to use pcbase(), which works even when the instruction callback is masked out, instead of peeking at the PC history index. - Remove some obsolete watchpoint-related definitions from machine.h.
* Remove not suported platform Miodrag Milanovic2021-08-151-5/+0
|
* Updated help text for bgfx_backend Robbbert2021-08-131-1/+1
|
* Fix to make it work on windows Miodrag Milanovic2021-08-121-2/+0
|
* update shader.mk according to one in bgfx Miodrag Milanovic2021-08-101-23/+45
|
* Update debugimgui to compile with latest imgui MooglyGuy2021-08-101-2/+7
|
* fix OSD=mac compile [R. Belmont] arbee2021-07-312-2/+4
|
* Slightly cleaned up OSD input modules. Vas Crabb2021-07-2916-744/+694
| | | | | | | | | | Removed support for DirectInput 7 and earlier. It hasn't been tested in years, and it's not relevant on any supported OS. DirectInput is effectively finalised at version 8, and is unlikely to get an API update in the future. Use more string[_view] and fewer C strings, and tightened up scope of a few things.
* debugimgui: fix mount and create image dialogs. Barry Rodewald2021-07-251-5/+13
|
* API cleanups and miscellaneous fixes. Vas Crabb2021-07-152-18/+14
| | | | | | | | | | | | | | | | emu/ioport.cpp: Allow controller files to override input sequences for inputs that don't use defaults, and to override the toggle setting for digital inputs. emu/config.cpp: Expose configuration level (mostly matters for controller files), improved verbose diagnostic messages, and moved a few things out of the global and preprocessor namespaces. docs: Added documentation for some controller configuration file features. The device mapping feature documentation will be merged in at some point. util/unicode.cpp, emu/input.cpp: API cleanups.
* video/voodoo.cpp: Major rewrite: (#8267) Aaron Giles2021-07-091-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Changed to use modern poly.h instead of polylgcy.h. * Moved helper classes into separate voodoo namespace. * Derived device classes from video_device_interface. * Split classes so that later versions derive from earlier versions. * Created device maps to be directly included. * Redesigned register mapping to use helper classes and delegates. * Rewrote rasterizers to use C++ templates instead of macros. * Added logic to compute equations for color/texture combine units. * Added special generic identity-texel rasterizer cases. * Removed pipeline stalls on texture and palette changes. * Removed pipeline stalls on most all parameter changes. * Generally re-thought and cleaned up logic throughout. * Parameterized cycle stealing on status reads; updated all existing voodoo consumers to configure it as it was before. -vidoe/poly.h: Various improvements: * Exposed poly_array class for broader use. * Changed poly_array to intelligently determine maximum size. * Added logic to track multiple "last" instances in poly_array. * Extended logic to support up to 16m work items. * Removed MaxPolys parameter from poly_manager template. * Added Flags parameter to poly_manager template. * Added POLY_FLAG_NO_CLIPPING flag to remove clipping code when not needed. * poly_manager now supports a MaxParams value of 0. * Made paramcount a template parameter for render_* functions. * Added reset_after_wait() method to be overridden by derived classes. * Switched to using std:: helpers instead of internal methods. * Removed useless dependency on screen_device. * TRACK_POLY_WAITS now produces more complete statistics. -video/polylgcy.cpp: Removed legacy implementation of polygon renderer. -machine/gt64xxx.cpp: Prevent lockups by disallowing 0-duration timers. -machine/pci.cpp: Added support for adding subdevice maps directly. -emu/video/rgbsse.h: Improved min/max for SSE4.1+ and scale+clamp operations for all. -emu/vidoe/rgbutil.h: Made palette expansion constexpr and added argbexpand function. -osd/osdcore.cpp: Changed osd_ticks to use QueryPerformanceCounter on Windows since the mingw std::chrono::high_resolution_clock is anything but.
* Correctly apply -keepaspect with -unevenstretchx/y. (#8209) antonioginer2021-07-022-13/+5
| | | | * Correctly apply -keepaspect with -unevenstretchx/y. Initialize window at the correct size when -intscalex/y is used. * Get correct window size upon maximizing/minimizing with integer scaling.
* Eliminate remaining uses of auto_alloc and friends (#8210) Aaron Giles2021-06-221-6/+8
| | | | | | | * Split off auto_alloc changes from deprecated branch. * Make the keymap reader non-static so it can access the unique_ptr. * Fix SDL input for real.
* osd/eigcc.h: Fix 32-bit gcc/clang builds. Vas Crabb2021-06-141-4/+8
|
* Added helpers for 64-bit count leading zeroes/ones. Vas Crabb2021-06-137-39/+384
|
* floppy: Change the formats from an intrusive list to a vector Olivier Galibert2021-05-271-2/+1
|
* srcclean for release Vas Crabb2021-05-231-1/+1
|
* -attach_window support for SDLMAME (#8070) npwoods2021-05-203-4/+65
|
* Fix crashes in Qt debugger caused by trying to select a nonexistent ↵ AJR2021-05-112-16/+22
| | | | disassembly or memory view
* Add -share_directory option. This sets a directory on the host system which ↵ arbee2021-05-081-0/+1
| | | | emulated systems can directly access. [R. Belmont]
* osx/sdl - handle caps lock key up events via a frame callback instead of the ↵ ksherlock2021-04-281-0/+28
| | | | sdl key up event (which is too fast) (#7972)
* srcclean in preparation for branching release Vas Crabb2021-04-251-6/+6
|
* -cpu/score: Added bittgl! opcode. Sandro Ronco2021-04-241-0/+67
| | | | -debuggdbstub.cpp: add score7 registers map.
* sound: Pulseaudio support Olivier Galibert2021-04-162-0/+408
|
* Changed audio_latency valid range from 1-5 to 0-5 (#7916) 9871238791132021-04-013-3/+5
|
* Disable sleep when using -bench. Aaron Giles2021-03-313-0/+3
|
* bgfx: Fixed crt-geom{,-deluxe} shader compilation and recompiled shaders. Vas Crabb2021-03-202-2/+2
|
* bgfx: crt-geom and crt-geom-deluxe enhancements (#7872) cgwg2021-03-207-70/+270
| | | | | | * Made spot size parameters adjustable also increased samples from 2 to 3 scanlines for crt-geom-deluxe. * Made horizontal interpolation adjustable. * bgfx crt-geom-deluxe: Made phosphor decay smoothly to zero at specified cutoff time. * bgfx crt-geom-deluxe: Added lowpass filter.
* -A few incremental UI code improvements: Vas Crabb2021-03-124-48/+42
| | | | | | | | | * Simplified message when toggling UI controls. * Show actual configured UI toggle key, not misleading hard-coded text. * Push window activated/deactivated events to UI manager. * Simplified SDL window event handling code - events are pretty precise. -Miscellaneous code cleanup.
* srcclean in preparation for branching release Vas Crabb2021-02-211-2/+2
|
* bgfx png: The message parameters were the wrong way around. Robbbert2021-02-211-1/+1
|
* bgfx: crt-geom and crt-geom-deluxe enhancements (#7766) cgwg2021-02-214-33/+248
| | | | | | | Added a "brightness boost" feature for the shadow mask that works by making the brightness ratio between bright and dark mask pixels closer to 1 for the brighter parts of the image. Added clamping to zero so that underscanning produces a black border. Added a "raster bloom" effect to crt-geom-deluxe that makes the image grow slightly when the average brightness of the screen is high, mimicking a common defect in CRTs.
* add m68000 to debuger gdbstub nabetse2021-02-151-0/+29
|
* Eliminate ARRAY_LENGTH template in favor of C++17's std::size AJR2021-02-1418-44/+30
| | | | | | | | | | * osdcomm.h: Move definition of EQUIVALENT_ARRAY to coretmpl.h * sharc.cpp, gt64xxx.cpp, ym2413.cpp, gb_lcd.cpp, snes_ppu.cpp: Use STRUCT_MEMBER for save state registration * gio/newport.cpp, megadrive/svp.cpp, nes_ctrl/bcbattle.cpp, arm7.cpp, tms9995.cpp, pckeybrd.cpp, sa1110.cpp, sa1111.cpp, jangou_blitter.cpp, vic4567.cpp: Use std::fill(_n) instead of memset * emucore.h: Remove obsolete typedef
* #7711: lld seems to add a minimal symbol that the system libraries catch. Be ↵ Aaron Giles2021-02-061-5/+14
| | | | smarter about ignoring that.