summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/mac
Commit message (Collapse)AuthorAgeFilesLines
* Made PTR64 a makefile-only thing - it isn't necessary in the code. Vas Crabb2025-04-201-1/+0
|
* -osd: Update slider list on demand rather than on frame updated (fixes MT08857). Vas Crabb2024-04-272-28/+1
| | | | -konami/konamigq.cpp: No need to cancel a newly allocated timer.
* -osd/mac, osd/sdl: Show prescale popup when it hasn't changed due to hitting ↵ Vas Crabb2024-02-181-1/+1
| | | | | | | | | the limit. * This makes it easier to see that you’ve hit the limit and MAME isn't just ignoring your keystrokes. -emu/inpttype.ipp: Restored tabulation.
* sdl modify_prescale: don't indicate max value hap2024-02-171-1/+1
|
* osdsdl: move prescale keys from ctrl+f6/f7 to alt+f8/f9 hap2024-02-171-2/+2
|
* osd/mac: Make compile again. Does not yet start up because BGFX tries to ↵ arbee2023-07-095-50/+19
| | | | force OpenGL. [R. Belmont]
* osd/mac, osd/sdl: Really inhibit full screen toggle in debug mode to prevent ↵ AJR2023-05-231-2/+2
| | | | accidental crashes
* Update accumulating relative inputs exactly once per frame. Vas Crabb2023-02-242-3/+3
| | | | | | | | | | | | | This fixes "amplification" effects that would happen if the frame rate rose above 100 Hz (whether by unthrottling or otherwise). Synchronise with wall clock any time inputs are read. Not doing this has weird effects on relative inputs with frame skipping and contributes to unresponsiveness of menus. Reduce visual latency for mouse movement on menus when paused or skipping frames. The rest of the code changes to menus won't provide benefits until draw can happen after event handling.
* osd: Cleaner way of dealing with input updates. Vas Crabb2023-02-233-13/+11
|
* osd: Don't pump events when reading inputs. Vas Crabb2023-02-232-2/+4
| | | | | | This was a drain on performance. If anything is trying to poll inputs in a loop, it needs to call input_update() to ensure it gets up-to-date state.
* osd: Fixed BGFX crash on toggling fullscreen on Linux. Vas Crabb2023-02-021-0/+3
| | | | Also fixed draw13.cpp upsetting older versions of clang.
* osd: Turned video modules into actual modules, fixed various issues. Vas Crabb2023-02-013-154/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't ignore the return status of OSD module initialisation. Attempt to fall back to an alternate module if the selected module fails to initialise. Log more useful diagnostic information at verbose level. Fixed BGFX crash on exit after toggling fullscreen. Also persist more settings than just the selected chains across toggling fullscreen. Turned video modules into OSD modules in the same sense as all the other OSD modules. They now use the same selection/fallback mechanism as all the other modules without special extra code in the OSD implementations. Untangled some object ownership mess. Windows own renderers, OSD objects own windows. Fixed a refrence loop that caused the first window object to always leak. Don't create renderer object until after underlying window has been created. Fixed issues with order of creation/destruction when toggling fullscreen or changing prescale in fullscreen with -switchres in SDL builds. Use more smart pointers in BGFX and Direct3D render modules. Most of the code now reutrns a smart pointer when handing over ownership or a naked pointer when retaining ownership. Fixed a few leaks and simplified cleanup code. Encapsulated various OSD modules better.
* Clean up #includes in src/osd (#10029) ajrhacker2022-07-042-1/+2
| | | | | * Clean up #includes in src/osd * render/bgfx/view.cpp: Add license header
* Updated BGFX fixes; verified as working on Linux and Windows. (#9420) MooglyGuy2022-03-151-9/+35
| | | | | | | * -bgfx: Improved stability when encountering missing files, and improved multi-window stability. [Ryan Holtz] * -osd: Added video-init fallback functionality to other OSDs. [Ryan Holtz] * -bgfx: Fixed issues from the previous batch of changes. [Ryan Holtz] * -osdwindow: Remove no-longer-needed addition of post_create(). [Ryan Holtz]
* Revert "More BGFX stability improvements (missing files + multi-window) (#9410)" Vas Crabb2022-03-161-35/+9
| | | | This reverts commit f5b75b74393646d1dc082ec807279451dc481854.
* More BGFX stability improvements (missing files + multi-window) (#9410) MooglyGuy2022-03-141-9/+35
| | | | | * -bgfx: Improved stability when encountering missing files, and improved multi-window stability. [Ryan Holtz] * -osd: Added video-init fallback functionality to other OSDs. [Ryan Holtz]
* Render-related cleanup AJR2021-12-301-0/+1
| | | | | | | - Undo inclusion of screen.h within render.h and update many source files that were stealth-including the former - Move texture_format enum to rendertypes.h - rendlay.h: Make a few methods static - ui/info.cpp: Use C++11-style iteration for render targets
* fix OSD=mac compile [R. Belmont] arbee2021-07-311-1/+1
|
* Disable sleep when using -bench. Aaron Giles2021-03-311-0/+1
|
* -getaway.cpp: Fixed steering control. Vas Crabb2021-01-231-1/+1
| | | | | | | | | | * Works fine with an analog stick/wheel, difficult to steer on the slippery "dotted" surface with keyboard/D-pad. -osd: Moved GCC intrinsics out of eminline.h so MAME_NOASM will take the pure C++ implementation with GCC (makes testing the fallback easier). -Removed a bunch of [[maybe_unused]] that aren't actually needed.
* ATTR_UNUSED, do you welcome C++17 in your heart and mind? Olivier Galibert2021-01-221-1/+1
|
* -osd/windows: Minimise full-screen windows on losing focus (#2997). Vas Crabb2021-01-213-10/+3
| | | | | | | | -osd/modules/osdwindow.cpp: Clean up window title formatting. * Show data type model in window title. * Moved window title formatting to a single place. -tools/chdman.cpp: Removed some unnecessary .c_str() calls.
* Much more core std::string_view modernization AJR2021-01-201-1/+2
| | | | | | | | | | | | | | | - 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
* osdwindow.cpp: Centralize basic functions; de-virtualize various getters AJR2021-01-042-99/+30
|
* Remove keepaspect and fullstretch members of osd_video_config AJR2020-12-162-4/+7
|
* Add "Non-Integer Scaling" and "Keep Aspect" settings to UI video options ↵ AJR2020-12-171-15/+0
| | | | menu and remove SDL hotkeys for same
* use C++ library includes (nw) firewave2020-01-221-1/+1
|
* 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
* Remove up to one frame of input latency. (#5901) antonioginer2019-11-163-7/+13
| | | | | | | | | | * 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
* OSD_MAC: don't run MAME on a thread, it upsets the debugger very much (nw) arbee2019-09-174-54/+62
|
* OSD_MAC: window now visible and has a title, but doesn't render (nw) arbee2019-09-161-7/+17
|
* Preliminary Mac native OSD. Not working yet. [R. Belmont] arbee2019-09-1514-0/+2183
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.