Replace GfxDrawString() with DrawText()

This commit is contained in:
Harry Hopkinson authored and GitHub committed 2024-05-10 09:56:03 +00:00
1 parent 2d99e49a05
commit 98ac3a1bbc
21 files changed
+60 -66

No files matched your search

+2 -1
View File
@@ -15,6 +15,7 @@
#include <openrct2/core/Http.h>
#include <openrct2/core/Json.hpp>
#include <openrct2/core/String.hpp>
#include <openrct2/drawing/Text.h>
#include <openrct2/localisation/Formatter.h>
#include <openrct2/localisation/Formatting.h>
#include <openrct2/localisation/Localisation.h>
@@ -538,7 +539,7 @@ static Widget window_object_load_error_widgets[] = {
auto name = entry.GetName();
char buffer[256];
String::Set(buffer, sizeof(buffer), name.data(), name.size());
GfxDrawString(dpi, screenCoords, buffer, { COLOUR_DARK_GREEN });
DrawText(dpi, screenCoords, { COLOUR_DARK_GREEN }, buffer);
if (entry.Generation == ObjectGeneration::DAT)
{