RECT.C 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
  3. SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
  4. END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
  5. ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
  6. IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
  7. SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
  8. FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
  9. CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
  10. AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
  11. COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
  12. */
  13. /*
  14. * $Source: f:/miner/source/2d/rcs/rect.c $
  15. * $Revision: 1.3 $
  16. * $Author: john $
  17. * $Date: 1994/11/18 22:50:19 $
  18. *
  19. * Graphical routines for drawing rectangles.
  20. *
  21. * $Log: rect.c $
  22. * Revision 1.3 1994/11/18 22:50:19 john
  23. * Changed shorts to ints in parameters.
  24. *
  25. * Revision 1.2 1993/10/15 16:23:27 john
  26. * y
  27. *
  28. * Revision 1.1 1993/09/08 11:44:22 john
  29. * Initial revision
  30. *
  31. *
  32. */
  33. #include "mem.h"
  34. #include "gr.h"
  35. #include "grdef.h"
  36. void gr_urect(int left,int top,int right,int bot)
  37. {
  38. int i;
  39. for ( i=top; i<=bot; i++ )
  40. gr_uscanline( left, right, i );
  41. }
  42. void gr_rect(int left,int top,int right,int bot)
  43. {
  44. int i;
  45. for ( i=top; i<=bot; i++ )
  46. gr_scanline( left, right, i );
  47. }
  48.