Blog > Re: Old config sticks

Home Forums ViewPort Old config sticks Re: Old config sticks

#11745

Anonymous

I have another problem. Occasionally the text is becoming corrupted for some reason.

If you go to http://obex.parallax.com/objects/413/ and download the object (It’s the "Text based GUI for VGA_HiRes_Text Driver (revised)" one.)

Open the GuiDemo.spin file,

Using Propeller tool, Search for this line…
GUI.ClearScreen( %%020, %%000 ) ‘green on black each is %%RGB 4 levels per R-G-B

now do the same thing with ViewPort, you get something different, but if you cut and paste, it’s normal!
GUI.Clearscreen(%%020, %0 0 ‘gre n n bla k ea h s %%R B leve s p r R-G <– Typed as seen on the screen
GUI.ClearScreen( %%020, %%000 ) ‘green on black each is %%RGB 4 levels per R-G <– Cut and pasted from VP.

Unfortuneately, VP sees what I see and doesn’t like the first line.

I’m using VP 4.6.7.

Any ideas?