mirror of https://github.com/OpenRCT2/OpenRCT2.git
Empty initialization for Formatter and TextPaint structures
This commit is contained in:
parent
adb692b74e
commit
83b2be602f
|
@ -126,8 +126,8 @@ static void DrawText(
|
|||
|
||||
void DrawTextBasic(rct_drawpixelinfo* dpi, const ScreenCoordsXY& coords, rct_string_id format)
|
||||
{
|
||||
Formatter ft;
|
||||
TextPaint textPaint;
|
||||
Formatter ft{};
|
||||
TextPaint textPaint{};
|
||||
DrawTextBasic(dpi, coords, format, ft, textPaint);
|
||||
}
|
||||
|
||||
|
@ -139,8 +139,8 @@ void DrawTextBasic(
|
|||
|
||||
void DrawTextEllipsised(rct_drawpixelinfo* dpi, const ScreenCoordsXY& coords, int32_t width, rct_string_id format)
|
||||
{
|
||||
Formatter ft;
|
||||
TextPaint textPaint;
|
||||
Formatter ft{};
|
||||
TextPaint textPaint{};
|
||||
DrawTextEllipsised(dpi, coords, width, format, ft, textPaint);
|
||||
}
|
||||
|
||||
|
@ -168,8 +168,8 @@ void gfx_draw_string_no_formatting(
|
|||
|
||||
int32_t DrawTextWrapped(rct_drawpixelinfo* dpi, const ScreenCoordsXY& coords, int32_t width, rct_string_id format)
|
||||
{
|
||||
Formatter ft;
|
||||
TextPaint textPaint;
|
||||
Formatter ft{};
|
||||
TextPaint textPaint{};
|
||||
return DrawTextWrapped(dpi, coords, width, format, ft, textPaint);
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include "Localisation.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <wchar.h>
|
||||
|
||||
uint32_t utf8_get_next(const utf8* char_ptr, const utf8** nextchar_ptr)
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#include "Platform2.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cstring>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue