From 86f212c01f291b820d901b2b32d83782c1bb3f53 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 6 Oct 2024 11:22:07 +0200 Subject: [PATCH] removed duplicate constant --- src/libgame/text.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libgame/text.c b/src/libgame/text.c index 1db4848f..b1426108 100644 --- a/src/libgame/text.c +++ b/src/libgame/text.c @@ -363,8 +363,6 @@ void DrawTextExt(DrawBuffer *dst_bitmap, int dst_x, int dst_y, char *text, // text buffer drawing functions // ============================================================================ -#define MAX_LINES_FROM_FILE 1024 - char *GetTextBufferFromFile(char *filename, int max_lines) { File *file; @@ -764,7 +762,7 @@ int DrawTextFile(int x, int y, char *filename, int font_nr, int line_spacing, int mask_mode, boolean autowrap, boolean centered, boolean parse_comments) { - char *text_buffer = GetTextBufferFromFile(filename, MAX_LINES_FROM_FILE); + char *text_buffer = GetTextBufferFromFile(filename, MAX_OUTPUT_LINESIZE); int num_lines_printed = DrawTextBuffer(x, y, text_buffer, font_nr, line_length, cut_length, max_lines, line_spacing, mask_mode, autowrap, -- 2.34.1