static int PrintTextFromFile(char *filename, int font_nr, int xpos, int ypos)
{
- char *text_buffer = GetTextBufferFromFile(filename, MAX_OUTPUT_LINESIZE);
+ char *text_buffer = GetTextBufferFromFile(filename, MAX_OUTPUT_LINES);
int num_lines_printed = PrintTextFromBuffer(text_buffer, font_nr, xpos, ypos);
checked_free(text_buffer);
int line_spacing, int mask_mode, boolean autowrap,
boolean centered, boolean parse_comments)
{
- char *text_buffer = GetTextBufferFromFile(filename, MAX_OUTPUT_LINESIZE);
+ char *text_buffer = GetTextBufferFromFile(filename, MAX_OUTPUT_LINES);
struct WrappedTextInfo *wrapped_text = GetWrappedText(text_buffer, font_nr,
line_length, cut_length, max_lines,
line_width, cut_width, max_height,
int line_spacing, int mask_mode, boolean autowrap,
boolean centered, boolean parse_comments)
{
- char *text_buffer = GetTextBufferFromFile(filename, MAX_OUTPUT_LINESIZE);
+ char *text_buffer = GetTextBufferFromFile(filename, MAX_OUTPUT_LINES);
int num_lines_printed = DrawTextBuffer(x, y, text_buffer, font_nr,
line_length, cut_length, max_lines,
line_width, cut_width, max_height,
char *filename = getInfoScreenFilename_Generic(screen_nr, use_global_screens);
char *buffer = getInfoScreenBuffer_Generic();
char *raw_text = (filename != NULL ? // always prefer info text files over buffers
- GetTextBufferFromFile(filename, MAX_OUTPUT_LINESIZE) :
+ GetTextBufferFromFile(filename, MAX_OUTPUT_LINES) :
getLatin1FromUTF8(buffer));
int line_spacing = getMenuTextSpacing(menu.line_spacing_info[info_mode], tmi->font);