added converting cave (set) story text to internal text format
authorHolger Schemel <holger.schemel@virtion.de>
Fri, 8 Nov 2024 20:16:41 +0000 (21:16 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Fri, 8 Nov 2024 16:17:32 +0000 (17:17 +0100)
src/screens.c

index 5b39e563ae2b6f951c27daab4d96aab0930ab20d..6f1083f3f3838c185e60cf56420e9c6345952294 100644 (file)
@@ -4176,7 +4176,7 @@ static void SetWrappedText_GenericScreen(struct TitleMessageInfo *tmi,
   char *buffer   = getInfoScreenBuffer_Generic();
   char *raw_text = (filename != NULL ? // always prefer info text files over buffers
                     GetTextBufferFromFile(filename, MAX_OUTPUT_LINESIZE) :
-                    getStringCopy(buffer));
+                    getLatin1FromUTF8(buffer));
   int line_spacing = getMenuTextSpacing(menu.line_spacing_info[info_mode], tmi->font);
 
   FreeWrappedText(wrapped_text);