Skip to content

Conversation

@Magstic
Copy link

@Magstic Magstic commented Dec 25, 2025

Wizardry Chapter 1 uses line breaks in game.en.0 but standard MIDP ignores them, causing text overflow.

Modified drawString() to handle line breaks.

Note: May affect other games using line breaks differently.

#173

Wizardry Chapter 1 uses line breaks in `game.en.0` but standard MIDP 
ignores them, causing text overflow.

Modified drawString() to handle line breaks.

Note: May affect other games using line breaks differently.
@AShiningRay
Copy link
Collaborator

It's not that standard MIDP ignores line breaks when rendering text through drawString(), but rather, that its behavior when handling those special characters is undisclosed by the documentation, so it was assumed to not handle them at all (as it did make sense that developers would account for the device and font sizes, and break text manually when using Graphics as opposed to TextBox/Field).

Looks like that for at least earlier jars, handling those is expected.

As for the patch itself, looks good, merging! In case of any breakages down the line, this can be improved upon.

@AShiningRay AShiningRay merged commit 98585bf into TASEmulators:devel Dec 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants