|
Post by Roi Yozevitch on Apr 24, 2016 2:23:21 GMT -8
Hi guys.
I want to flash the entire ABC in the eve. I tried to write:
char txt = 'A'; GD.cmd_text(240, 136, 31, OPT_CENTER, &txt);
txt=txt+1;
It works but i get a white square next to the letter. Do you know how to delete it?
|
|
|
Post by jamesbowman on Apr 24, 2016 8:05:13 GMT -8
Right, so cmd_text() is expecting to see a C string, and C strings end with a 0-byte.
So instead you can do:
char txt[2] = {'A', 0}; GD.cmd_text(240, 136, 31, OPT_CENTER, txt);
txt[0] = txt[0] + 1;
|
|