home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d188 / fastgro.lha / FastGro / DisplayRows.c < prev    next >
C/C++ Source or Header  |  1989-02-26  |  800b  |  35 lines

  1. /* DisplayRows.c    Copyright (c) 1988 Doug Houck
  2.  
  3. NAME        DisplayRows    - get system's idea of lo-res screen height
  4.  
  5. SYNOPSIS    rows = DisplayRows();
  6.  
  7. FUNCTION    look in GfxBase for NormalDisplayRows value, return it.
  8.         This is, I think, a little better approach than testing
  9.         the PAL flag bit, as we can pick up non-standard screen
  10.         sizes.
  11.  
  12. SEE ALSO    DisplayColumns();
  13.  
  14.  
  15. NAME        DisplayColumns    - get system's idea of lo-res screen width
  16.  
  17. SYNOPSIS    columns = DisplayColumns();
  18.  
  19. FUNCTION    Look in GfxBase for NormalDisplayRows, cut it in half
  20.         and return value.
  21.  
  22. SEE ALSO    Display Rows();
  23.  
  24. */
  25.  
  26. #include <exec/types.h>
  27. #include <graphics/gfxbase.h>
  28.  
  29. extern struct GfxBase *GfxBase;
  30.  
  31. int DisplayRows() {  return( GfxBase->NormalDisplayRows ); }
  32.  
  33. int DisplayColumns() { return( GfxBase->NormalDisplayColumns>>1 ); }
  34.  
  35.