Jump to content

Recommended Posts

Posted

It's difficult to say anything helpful without getting any more details.

If you call gdispGDrawString() repeatedly without clearing the area first it would be quite likely that your text will look jagged as you would basically "override" the "anti-aliasing pixels" every time further offsetting their true/apparent color values.

Try to clear the area first. Alternatively, use another string rendering function (there are some variants that render with a box & background).
 

Posted (edited)

Thx Joel!

gdispGFillString() works !!! (0 Ah is with gdispGDrawString() )

What is the advantage of gdispGDrawString()? I mean, i understood that you dont have to take care about the BG.

 

Screenshot_2023-02-17_13-45-28.png

Edited by w3llschmidt
Posted

It doesn't have "an advantage". It's just a variant of the string rendering function which also fills in the background whereas the other one doesn't. Which one is the "correct" one to use depends on what you are doing. Sometimes you don't want to override the background.

Just as a side note, you can also use the various gdispGXxx() functions without the capital 'G' in them (for example just gdispFillString() or gdispDrawString()). This way you don't have to specify your display on every function call.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...