Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Feature #902490 ยป 0041-sdl2-Correct-create_utf8_str-function-header.patch

Marko Lindqvist, 2020-12-03 06:28 AM

View differences:

client/gui-sdl2/gui_string.c
157 157
/**********************************************************************//**
158 158
  Create utf8_str struct with ptsize font.
159 159
  Font will be loaded or aliased with existing font of that size.
160
  pInTextString must be allocated in memory (MALLOC/fc_calloc)
160
  in_text must be allocated in memory (malloc/fc_calloc)
161 161
**************************************************************************/
162 162
utf8_str *create_utf8_str(char *in_text, size_t n_alloc, Uint16 ptsize)
163 163
{
......
181 181
  str->fgcol = *get_theme_color(COLOR_THEME_TEXT);
182 182
  str->render = 2;
183 183

  
184
  /* pInTextString must be allocated in memory (MALLOC/fc_calloc) */
184
  /* in_text must be allocated in memory (malloc/fc_calloc) */
185 185
  str->text = in_text;
186 186
  str->n_alloc = n_alloc;
187 187

  
188
- 
    (1-1/1)