summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OnScreenDisplay.cpp
AgeCommit message (Collapse)Author
2023-12-15VideoBackends / VideoCommon: add type enum to dictate whether a texture is a ↵iwubcode
2D texture, a texture array, or a cube map; support 2D texture type across backends Co-authored-by: TellowKrinkle <tellowkrinkle@gmail.com>
2023-10-17VideoCommon: Add support for icons in OSD messages.Admiral H. Curtiss
2022-08-02Timer: protect usages of ms timers from rolloverShawn Hoffman
2022-08-02Common::Timer: use chrono::steady_clock internallyShawn Hoffman
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-04-25OnScreenDisplay: a few fixesFiloppi
-They might have never drawn if DrawMessages wasn't called before they actually expired -Their fade was wrong if the duration of the message was less than the fade time This makes them much more useful for debugging, I know there might be other means of debugging like logs and imgui, but this was the simplest so that's what I used. If you want to print the same message every frame, but with a slightly different value to see the changes, it now work. To compensate for the fact that they are now always rendered once, so on start up a lot of old messages (printed while the emulation was off) could show up, I've added a "drop" time, which means if a msg isn't rendered for the first time within that time, it will be dropped and never rendered.
2020-09-16Android: Move OSD out of the way when menu is openJosJuice
https://bugs.dolphin-emu.org/issues/12256
2020-08-03Port some settings to the new config systemJosJuice
Other than the controller settings and JIT debug settings, these are the only settings which were defined in Java code but not defined in the new config system in C++. (There are still a lot of settings that are defined in the new config system but not yet saveable in the new config system, though.)
2020-08-02OnScreenDisplay: fix names rgba -> argbFelk
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