home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / oslib / examples / c / ex2 < prev    next >
Encoding:
Text File  |  1993-11-01  |  451 b   |  21 lines

  1. /*44 instructions*/
  2.  
  3. #include "colourtrans.h"
  4. #include "font.h"
  5. #include "os.h"
  6. #include "pdriver.h"
  7.  
  8. void x (int page, char *t)
  9.  
  10. {  bool more;
  11.    os_box req;
  12.  
  13.    for (pdriver_draw_page (1, &req, page, NULL, &more, NULL);
  14.          more; pdriver_get_rectangle (&req, &more, NULL))
  15.    {  colourtrans_set_gcol (os_COLOUR_BLACK, colourtrans_SET_FG,
  16.             os_ACTION_OVERWRITE, NULL, NULL);
  17.  
  18.       font_paint (0, t, NONE, 0, 0, NULL, NULL, 0);
  19.    }
  20. }
  21.