DrawText output garbled

BlitzMax Forums/BlitzMax Programming/DrawText output garbled

dooz(Posted 2011) [#1]
I am having an issue where I drawtext over and over and the text gradually get corrupted, i.e. it appears that junk gets written over it.

I am doing a lot of pixel manipulations on other pixmaps that were locked from images. I have checked this code to make sure I don't go outside of the bounds of the pixel size (can you even do that?) and I don't believe I am.

Are there any known issues regarding font / char images getting corrupted or lost, similar to the white image problem in previous versions because images were released before rendering?

Thanks if anyone has any ideas.


Jesse(Posted 2011) [#2]
are you constantly creating and deleting pixmaps? If you are it's probably data left over from a previous pixmap.
when you create a pixmap use "ClearPixels" before you use it.


col(Posted 2011) [#3]
I know it may sound a dumb question, but are you using 'Cls' to clear the screen before drawing each frame?


dooz(Posted 2011) [#4]
Jesse, I am not creating or deleting pixmaps, I am locking, reading and writing pixels, then unlocking.

col - Yes I am using Cls to clear the screen before drawing each frame.


ima747(Posted 2011) [#5]
Is the text getting fuzzy around the edges, or corrupted in some other way?

What blend mode are you using?