-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Implement color emoji support for Android #17854
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
#include "Common/File/VFS/VFS.h" | ||
|
||
#include "Common/Data/Color/RGBAUtil.h" | ||
#include "Common/Data/Encoding/Utf8.h" | ||
#include "Common/Data/Text/I18n.h" | ||
#include "Common/Data/Random/Rng.h" | ||
#include "Common/TimeUtil.h" | ||
|
@@ -798,7 +799,9 @@ void LogoScreen::render() { | |
// Draw the graphics API, except on UWP where it's always D3D11 | ||
std::string apiName = screenManager()->getDrawContext()->GetInfoString(InfoField::APINAME); | ||
#ifdef _DEBUG | ||
apiName += ", debug build"; | ||
apiName += ", debug build "; | ||
// Add some emoji for testing. | ||
apiName += CodepointToUTF8(0x1F41B) + CodepointToUTF8(0x1F41C) + CodepointToUTF8(0x1F914); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you mean for this to stay? I mean, it's fine, just noting in case. -[Unknown] There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, since it's debug build only :) and having them here is convenient for checking. |
||
#endif | ||
dc.DrawText(gr->T(apiName), bounds.centerX(), ppsspp_org_y + 50, textColor, ALIGN_CENTER); | ||
#endif | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I would just assume anything with characters outside the BMP (i.e. c > 0xFFFF) includes emoji. Unless someone is using Ancient Sumerian or Egyptian Hieroglyphics, that's probably the only reason most people will use non-BMP glyphs. I guess the other thing is advanced math symbols.
-[Unknown]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I guess that's the safer way to go...