Message3783

Author fluzz
Recipients
Date 2023-01-03.10:19:40
Content
There is, theoretically, no limit on the text size by itself. But, the code used to display the scrolled text has potentially some limits (see below).

Anyhow, the principle is to render the whole text with a negative offset and then clip it to the window of the text widget. This is definitely not suited for a very huge text, and whole code should be changed...

So, there is a hard-coded limit in text.c:get_lines_needed():
"t_rect.h = 32767"
If the font height is 10 pixels, it means a limit of 3276 lines of text (if I'm not wrong).

Could you please do a small test: put that number to 1000, for instance, play the nethack minigame, and check that the text quickly stops to scroll ?
History
Date User Action Args
2023-01-03 10:19:41fluzzsetmessageid: <1672741181.01.0.0931707702757.issue984@freedroid.org>
2023-01-03 10:19:41fluzzlinkissue984 messages
2023-01-03 10:19:40fluzzcreate