This repository was archived by the owner on Mar 21, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,14 @@ typedef struct cached_glyph {
189
189
};
190
190
} c_glyph ;
191
191
192
+ /* Internal buffer to store positions computed by TTF_Size_Internal()
193
+ * for rendered string by Render_Line() */
194
+ typedef struct PosBuf {
195
+ FT_UInt index ;
196
+ int x ;
197
+ int y ;
198
+ } PosBuf_t ;
199
+
192
200
/* The structure used to hold internal font information */
193
201
struct _TTF_Font {
194
202
/* Freetype2 maintains all sorts of useful info itself */
@@ -227,11 +235,7 @@ struct _TTF_Font {
227
235
228
236
/* Internal buffer to store positions computed by TTF_Size_Internal()
229
237
* for rendered string by Render_Line() */
230
- struct PosBuf {
231
- FT_UInt index ;
232
- int x ;
233
- int y ;
234
- } * pos_buf ;
238
+ PosBuf_t * pos_buf ;
235
239
Uint32 pos_len ;
236
240
Uint32 pos_max ;
237
241
@@ -243,13 +247,6 @@ struct _TTF_Font {
243
247
#endif
244
248
};
245
249
246
-
247
- #ifdef _WIN32
248
- typedef TTF_Font ::PosBuf PosBuf_t ;
249
- #else
250
- typedef void PosBuf_t ;
251
- #endif
252
-
253
250
/* Tell if SDL_ttf has to handle the style */
254
251
#define TTF_HANDLE_STYLE_BOLD (font ) ((font)->style & TTF_STYLE_BOLD)
255
252
#define TTF_HANDLE_STYLE_ITALIC (font ) ((font)->style & TTF_STYLE_ITALIC)
You can’t perform that action at this time.
0 commit comments