Draw text on the window

The call to the textout_ex function in Listing 5 draws the text "HELLO WORLD" on the graphics screen as shown in Figure 1.

Listing 5. Draw text on the window.
  textout_ex(screen,//Specify bitmap on the screen
             font,//Use a default font
             "HELLO WORLD",//Specify the text to display
             20,//X-coordinate for text
             30,//Y-coordinate for text
             makecol(255,255,0),//Color text yellow
             makecol( 255,0,0) );//Put red behind text