w3llschmidt Posted February 16, 2023 Report Share Posted February 16, 2023 Hello! i have a strange issue. Im using GDISP_NEED_ANTIALIAS, wich works fine until i put a gdispGDrawString() in a while(1) loop. The clear string is (as a test) in main(). Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted February 17, 2023 Report Share Posted February 17, 2023 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). Link to comment Share on other sites More sharing options...
w3llschmidt Posted February 17, 2023 Author Report Share Posted February 17, 2023 (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. Edited February 17, 2023 by w3llschmidt Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted February 17, 2023 Report Share Posted February 17, 2023 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. Link to comment Share on other sites More sharing options...
w3llschmidt Posted February 17, 2023 Author Report Share Posted February 17, 2023 Thx for the Tip Joel. I love uGfx, realy great peace of work! Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted February 17, 2023 Report Share Posted February 17, 2023 3 minutes ago, w3llschmidt said: I love uGfx, realy great peace of work! Glad to hear that! Happy that we could help. Please don't hesitate to ask if you have any further questions. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now