Add a couple of emoji to UI in debug mode

This commit is contained in:
Henrik Rydgård committed 2023-08-06 15:10:49 +02:00
1 parent ea659319b2
commit a477ca3f05
4 files changed
+15 -2

No files matched your search

+4 -1
View File
@@ -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 bug emoji for testing.
apiName += CodepointToUTF8(0x1F41B) + CodepointToUTF8(0x1FAB0) + CodepointToUTF8(0x1F41C) + CodepointToUTF8(0x1FAB2);
#endif
dc.DrawText(gr->T(apiName), bounds.centerX(), ppsspp_org_y + 50, textColor, ALIGN_CENTER);
#endif