Jump to content
IGNORED

Proposed change to tgi outext function


Nop90

Recommended Posts

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 by Nop90
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...