mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 01:35:06 +01:00
Remove and replace C typedefs
`typedef struct/union/enum name { ... } name_again;` is not needed whe compiling C++, moving the name at the back to be in front of the object and removing `typedef` makes it usable the very same way.
This also replaces typedefs with the using keyword. They have better readability, especially for function pointer types, and would allow more flexibility when used with templates.
This commit is contained in:
committed by
Michael Steenbeek
parent
431c2a4e74
commit
55979a3fff
@@ -422,7 +422,7 @@ void gfx_draw_string_centred_wrapped_partial(rct_drawpixelinfo *dpi, sint32 x, s
|
||||
}
|
||||
}
|
||||
|
||||
typedef struct text_draw_info {
|
||||
struct text_draw_info {
|
||||
sint32 startX;
|
||||
sint32 startY;
|
||||
sint32 x;
|
||||
@@ -433,7 +433,7 @@ typedef struct text_draw_info {
|
||||
uint8 palette[8];
|
||||
uint16 font_sprite_base;
|
||||
const sint8 *y_offset;
|
||||
} text_draw_info;
|
||||
};
|
||||
|
||||
static void ttf_draw_character_sprite(rct_drawpixelinfo *dpi, sint32 codepoint, text_draw_info *info)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user