hschumann2/TempleOS-Source-Code
0838
1 2gr.text_base must be updated 30fps in your Fs->draw_it() callback. You probably3want GrPrint() or just Print(). The DolDoc code takes care of plotting text to4gr.text_base.5 6Bits 0-7 8-Bit ASCII Scrn Code7Bits 8-11 Foreground color8Bits 12-15 Background color9Bits 16-20 Signed X pos shift val10Bits 21-25 Signed Y pos shift val11Bit 28 Blink12Bit 29 Inverted (Swap foreground and background)13Bit 30 Sel (XOR colors with FF)14Bit 31 Underline15 16GrUpdateTaskWin() calls DocUpdateTaskDocs() which calls DocRecalc() where the17document text is plotted into gr.text_base. Then, GrUpdateTextBG() and18GrUpdateTextFG() render the gr.text_base onto gr.dc2, a raw graphic bitmap.19 20See ::/Demo/Games/Maze.HC.21 