Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VideoCommon/OnScreenDisplay: Minor cleanup #8269

Merged
merged 5 commits into from
Aug 8, 2019

Conversation

lioncash
Copy link
Member

Performs some tidying up of the on screen display interface. Notably, it allows moving into the function, which would be the case for most usages of the functions, allowing copies to be avoided entirely in these scenarios.

This also fixes a format string within the hotkey scheduler. This string should have been within a StringFromFormat call rather than being passed directly to AddMessage().

lioncash added 5 commits July 28, 2019 22:42
Provides a deterministic initial state in the case of the default
constructor.
…value

Allows callers to std::move strings into the functions (or automatically
assume the move constructor/move assignment operator for rvalue
references, potentially avoiding copies altogether.
While we're at it, fix up the imgui include to use the convention we use
for referencing external library headers.
Same behavior without hardcoding the type of the mutex within the lock
guards. This means the type of the mutex would be able to be changed
without needing to also change all occurrences lock guards are used.
AddMessage() by itself doesn't perform string formatting facilities, so
this message was actually using the EFB scale as a duration value, not a
format argument. This corrects that.
@stenzek stenzek merged commit 22ed2c0 into dolphin-emu:master Aug 8, 2019
@lioncash lioncash deleted the osd-move branch August 8, 2019 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants