home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 10: Diskmags / nf_archive_10.iso / MAGS / STFORMAT / STF11.MSA / SIDE_B_C_TUTOR_SCRATT.C < prev    next >
C/C++ Source or Header  |  1990-04-15  |  676b  |  36 lines

  1. /* ----------------- ST FORMAT PINBALL PROGRAM ------- ------------------------
  2.  
  3.     Title:        PINBALL
  4.  
  5.     Module:        scratt.c: screen attributes
  6.  
  7.     Version:    1.1
  8.  
  9.     Author:        Warwick Grigg
  10.  
  11.     Copyright (c) Warwick Grigg 1990. All rights reserved.
  12.  
  13. ----------------------------------------------------------------------------- */
  14.  
  15. #include <osbind.h>
  16.  
  17. #define REZS        (3)
  18.  
  19. int scrdimx()
  20. {
  21.     static int screendimx[REZS] =    { 320, 640, 640 };
  22.     return screendimx[Getrez()];
  23. }
  24.  
  25. int scrdimy()
  26. {
  27.     static int screendimy[REZS] =     { 200, 200, 400 };
  28.     return screendimy[Getrez()];
  29. }
  30.  
  31. int planes()
  32. {
  33.     static int nplanes[REZS] =    { 4, 2, 1 };
  34.     return nplanes[Getrez()];
  35. }
  36.