1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Replace GfxDrawString() with DrawText()

This commit is contained in:
Harry Hopkinson
2024-05-10 10:56:03 +01:00
committed by GitHub
parent 2d99e49a05
commit 98ac3a1bbc
21 changed files with 60 additions and 66 deletions

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)
{