Nop90 Posted January 16, 2021 Share Posted January 16, 2021 (edited) This post is mostly for @karri but I think it's better to discuss the proposal in a thread than in PM. I'm reusing most of the code of the tgi lib for to lynx for my BASIC interpreter and while studying how to adapt the code I found a possible little change to the TGI Outtext function The function uses a buffer to store up to 20 chars to be drawn at the same time on the screeen. This could seem right because the font size is 8px wide, the screen is 160px wide and 160/8=20. But this doesn't consider the case of a text drawn not aligned with the left border of the screen: in this weird case 21 chars would be the correct number (19 full characters and 2 partial characters). I's not so common that a text is written partially out of the screen, but can happen with a scrolltext. If the change is approved I can provide the updated code for the tgi driver. Edited January 16, 2021 by Nop90 Quote Link to comment Share on other sites More sharing options...
+karri Posted January 17, 2021 Share Posted January 17, 2021 Good idea. Do it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.