summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OnScreenDisplay.cpp
AgeCommit message (Collapse)Author
2020-01-24VideoCommon/OSD: Process OSD messages even when they are disabled.Jordan Woyak
2019-11-23VideoCommon: Make use of fmt outside of shader generatorsLioncash
Migrates most of VideoCommon over to using fmt, with the exception being the shader generator code. The shader generators are quite large and have more corner cases to deal with in terms of conversion (shaders have braces in them, so we need to make sure to escape them). Because of the large amount of code that would need to be converted, the conversion of VideoCommon will be in two parts: - This change (which converts over the general case string formatting), - A follow up change that will specifically deal with converting over the shader generators.
2019-07-28VideoCommon/OnScreenDisplay: Use deduction guides for std::lock_guardLioncash
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.
2019-07-28VideoCommon/OnScreenDisplay: Remove unused headersLioncash
While we're at it, fix up the imgui include to use the convention we use for referencing external library headers.
2019-07-28VideoCommon/OnScreenDisplay: Take Message's std::string parameter by valueLioncash
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.
2019-07-28VideoCommon/OnScreenDisplay: Default initialize all Message membersLioncash
Provides a deterministic initial state in the case of the default constructor.
2019-06-07Core/ConfigManager: Use forward declarations where applicableLioncash
Avoids dragging in IniFile, EXI device and SI device headers in this header which is quite widely used throughout the codebase. This also uncovered a few cases where indirect inclusions were being relied upon, which this also fixes.
2019-05-06Reformat repo to clang-format 7.0 rulesTechjar
2019-01-25Renderer: Use imgui for drawing debug text and OSDStenzek
2016-10-15Revert "Merge pull request #4286 from shuffle2/Aestek-clean-osd"degasus
This reverts commit 5c0fa4db4fa4a2533c190825e83675f074eaf50c, reversing changes made to b8731eb8180d76b4663eaf4188f985b9c5fa6fb2.
2016-10-03Clean OSD messages codeShawn Hoffman
Some OSD messages were displayed in RenderBase.cpp using global variables and some code duplicated in OnScreeDisplay.cpp. Now all messages are displayed using functions in the OSD namepace. * OSDChoice and OSDTime global variables are gone * All OSD logic is kept at the same place * All messages are properly aligned * Clean characters for all OSD messages Original commit: commit f0ec61c05707c9657baaad096e21cf60abd267f9 Author: Aestek <thib.gilles@gmail.com> Date: Sun Aug 7 16:08:41 2016 +0200
2016-07-23Improve netplay setup dialog UXAestek
* Focus "Hash Code" / "IP address" text box by default in "Connect" * Focus game list in "Host" tab * RETURN keypress now host/join depending on selected tab * Remember last hosted game * Remove PanicAlertT: * Simply log message to netplay window * Remove them when they are useless * Show some netplay message in OSD * Chat messages * Pad buffer changes * Desync alerts * Stop the game consistently when another player disconnects / crashes * Prettify chat textbox * Log netplay ping to OSD Join scenario: * Copy netplay code * Open netplay * Paste code * Press enter Host scenario: * Open netplay * Go to host tab * Press enter
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2016-01-02OnScreenDisplay: Make CallbackType an enum classLioncash
2015-06-28Use emplace() instead of insert() where applicable for maps.Lioncash
2015-06-12Options: merge SCoreStartupParameter into SConfigdegasus
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-02-07OnScreenDisplay: Allow for different colored messagesLioncash
2014-12-20OGL: draw shadows within rasterfont itselfdegasus
2014-09-08Include CommonTypes.h instead of Common.h.Rohit Nirmal
2014-03-14Kill off some usages of c_str.Lioncash
Also changes some function params, but this is ok. Some simplifications were also able to be made (ie. killing off strcmps with ==, etc).
2014-03-11Fixes spacing for "for", "while", "switch" and "if"Matthew Parlane
Also moved && and || to ends of lines instead of start. Fixed misc vertical alignments and some { needed newlining.
2014-02-18Convert all includes to relative paths.Lioncash
2014-02-09Clean up some struct indentationsLioncash
Also cleaned up the indentations of some variable declarations.
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre