-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NF_CreateTextLayer: Using the same font on two screens causes on one screen to be printed in both screens. #13
Comments
fundemental flaw with nflib i don't think it can be fixed :/ explanation: text fonts are basically just tiled bgs that are loaded and it's tiles are changed with text, using the same font is basically using the same bg and they first get written to ram and then updated to vram meaning both are messed up :) |
Is there any issue with loading the same text font, but giving it a different name? The text example shows something that might be the solution to that. |
That should work, yes. |
no, it works nicely, it just kind of sucks to have to load the same thing again :/ |
I'm gonna assume that creating a text font also creates a tile-map in RAM, and writing text to it is just updating that internal tile-map and then writing that to the screen. In that case, the loading also doubles as tile-map allocation, if that makes you feel any better. |
yeah it's a fundamental flaw with nflib |
lets take look at A:
now lets take a look at B:
i dont know whats causing this issue, but if i had to guess, its probably this line of code /~https://github.com/knightfox75/nds_nflib/blob/master/source/nf_text.c#L133
The text was updated successfully, but these errors were encountered: