home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 2 / DATAFILE_PDCD2.iso / utilities2 / desklib / Libraries / GFX / c / Rectangle
Encoding:
Text File  |  1993-04-10  |  899 b   |  27 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for 
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #                                      
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    GFX.Rectangle.c
  12.     Author:  Copyright © 1993 Jason Williams
  13.     Version: 1.01 (10 Apr 1993)
  14.     Purpose: Plot command: Rectangle outline
  15. */
  16.  
  17. #include "GFX.h"
  18.  
  19. extern void GFX_Rectangle(int x, int y, int w, int h)
  20. {
  21.    GFX_Move(x, y);
  22.    GFX_DrawBy(0, h);
  23.    GFX_DrawBy(w, 0);
  24.    GFX_DrawBy(0, -h);
  25.    GFX_DrawBy(-w, 0);
  26. }
  27.