0 Members and 1 Guest are viewing this topic.
Quote from: DJ Omnimaga on July 26, 2013, 02:22:08 amoh ok, I wasn't sure since in your screenshot there was one particularly short line.That must be because the next word is a long one.Quote from: DJ Omnimaga on July 26, 2013, 02:22:08 amHow do you do the offscreen detection btw? Do you just count the total amount of pixels each char in the word takes or is that what pencol do?That is what pencol does. Basically, pencol is the x position of your pen. When you have written a word, your pen is at the end of the word. And if your pen is no longer on the screen (if pencol>width_of_screen) it means that your word was too long to fit on the screen.Quote from: DJ Omnimaga on July 26, 2013, 02:22:08 amI was sure that pencol and such stuff was only for the homescreen...For the homescreen, its curcol (and currow), not pencol (and penrow).
oh ok, I wasn't sure since in your screenshot there was one particularly short line.
How do you do the offscreen detection btw? Do you just count the total amount of pixels each char in the word takes or is that what pencol do?
I was sure that pencol and such stuff was only for the homescreen...