| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
mame_machine_manager::instance()->ui()
Dynamic casts are never one's first choice, but this is superior to
grabbing a global singleton. Upon merging more worker_ui changes, it
will be possible for machine().ui() to be an implementation of
ui_manager distinct from mame_ui_manager, so this code is being changed
to gracefully handle this scenario. Plus, global singletons like
mame_machine_manager::instance are just plain ugly.
Lastly, I would like someone familiar with the LUA integration to look
at this, not just for correctness, but to validate my approach of
keeping LUA's mame_machine_manager::ui() equivalent returning the
mame_ui_manager while changing how it is implemented. Even if getting
rid of mame_machine_manager::ui() is the right way to go, there is an
argument to be made that we should change the LUA integration even if it
breaks compatibility with existing scripts (though obviously I did not
take that approach).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Changed the various usages of UI_*COLOR to be calls to
src/frontend/mame/ui/moptions.h
The various UI_*COLOR macros were implemented as calls to
decode_ui_color, which cached the values for the various options in a
static array, which was obviously a gross hack.
This refactoring is strategic because I am trying to confine awareness
of mame_ui_manager to code in src/frontend/mame/ui, and the
implementation of decode_ui_color() relied on the ability to access
mame_ui_manager as a singleton from outside this code.
* Created a ui_colors object, so that queries for UI RGB values would not
always require parsing strings
* Replaced UI_TARGET_FONT_[ROWS|HEIGHT] and UI_BOX_[LR|TD]_BORDER macros with
property calls
These macros were implemented with a call to a function
(get_font_rows()) that opportunistically stashed the results of option
accesses in static variables; in other words, a gross hack
Because get_font_rows() attempted to access mame_ui_manager as a
singleton, it was an obstactle to providing an alternative
implementation of ui_manager
* Remove stray debugging cruft that found a way into the other PR
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
src/frontend/mame/ui/moptions.h (#5282)
* Changed the various usages of UI_*COLOR to be calls to
src/frontend/mame/ui/moptions.h
The various UI_*COLOR macros were implemented as calls to
decode_ui_color, which cached the values for the various options in a
static array, which was obviously a gross hack.
This refactoring is strategic because I am trying to confine awareness
of mame_ui_manager to code in src/frontend/mame/ui, and the
implementation of decode_ui_color() relied on the ability to access
mame_ui_manager as a singleton from outside this code.
* Created a ui_colors object, so that queries for UI RGB values would not
always require parsing strings
* Converted a few more options().zyx_color() to colors().zyx_color()
* A few more misses from earlier
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
sorted by name, and keyboard keys are sorted by their assigned character codes (if any).
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
emu.thread()
machine:popmessage()
watch/breakpoints
debugger presence note
val for write functions
input:seq_poll*
fix typo in memory_share library
emu.register_callback(callback, name) still TODO
|
| | |
|
| |
|
|
|
|
| |
case value evaluates to 2147483654, which cannot be narrowed to type 'intptr_t' (aka 'long') [-Wc++11-narrowing]
This partially reverts d199ec2657e011ff6ca8e5cb0c43fd3f304a292e but the warning is correct, the value does not fit.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing
changes made to 009cba4fb8102102168ef32870892438327f3705.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
and cache stuff used for searching in software selection menu
|
| |
|
|
| |
in-emulation menu
|
| | |
|
| |
|
|
|
|
|
|
|
| |
* Split up the different parts of ICO loading in the menus (locating files, scaling, drawing, etc.)
* Added icon support to software selection menu
* Added support for more ICO file variants, including PNG-in-ICO (new DIB parser is overkill for ICO but I can factor it out for BMP loading at some point)
* Added favourites filter for software menus - includes software that's favourited on any system, so GBC includes DMG favourties and vice versa
* Eliminated unnecessary member variables and O(n) walks in software selection menu
* Made the menus' cached texture structures a bit more efficient
|
| |
|
|
|
|
|
|
|
| |
* Fix crash on builds with fewer than 16 drivers
* Fix "available" filter in internal UI
* Get rid of some UI globals that shouldn't be global
* Better encapsulation in UI
* Clean up favourites manager - in particular kill hidden state and O(n) walks
* This breaks adding systems/software to favourites from the main tab menu
|
| |
|
|
| |
similarity to match search strings, match on more useful stuff)
|
| |
|
|
| |
over .ini files (nw)
|
| |
|
|
|
|
| |
- conditionally uninitialised variables in PortAudio;
- floats passed to attotime;
- unsigned->signed enums (this one is technically still wrong)
|
| | |
|
| |
|
|
| |
slight performance improvement for reading localisation files, and more documentation clean-up/correction/clarification
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Any users of that need to change :targets()[ to .targets[
|
| | |
|
| |
|
|
| |
improve comment wording
|