home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xibm.zip / ppc / ppcQuery.c < prev    next >
C/C++ Source or Header  |  1989-11-14  |  2KB  |  48 lines

  1. /*
  2.  * Copyright IBM Corporation 1987,1988,1989
  3.  *
  4.  * All Rights Reserved
  5.  *
  6.  * Permission to use, copy, modify, and distribute this software and its
  7.  * documentation for any purpose and without fee is hereby granted,
  8.  * provided that the above copyright notice appear in all copies and that 
  9.  * both that copyright notice and this permission notice appear in
  10.  * supporting documentation, and that the name of IBM not be
  11.  * used in advertising or publicity pertaining to distribution of the
  12.  * software without specific, written prior permission.
  13.  *
  14.  * IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  15.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  16.  * IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  17.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  18.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  19.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  20.  * SOFTWARE.
  21.  *
  22. */
  23.  
  24. /* $Header: /andrew/X11/R3src/tape/server/ddx/ibm/ppc/RCS/ppcQuery.c,v 9.1 88/10/24 04:01:06 paul Exp $ */
  25. /* $Source: /andrew/X11/R3src/tape/server/ddx/ibm/ppc/RCS/ppcQuery.c,v $ */
  26.  
  27. #ifndef lint
  28. static char *rcsid = "$Header: /andrew/X11/R3src/tape/server/ddx/ibm/ppc/RCS/ppcQuery.c,v 9.1 88/10/24 04:01:06 paul Exp $" ;
  29. #endif
  30.  
  31. #include "X.h"
  32. #include "Xproto.h"
  33.  
  34. void
  35. ppcQueryBestSize( class, pwidth, pheight )
  36. register int class ;
  37. register short *pwidth ;
  38. register short *pheight ;
  39. {
  40. if ( class == CursorShape )
  41.   *pwidth = *pheight = 32 ; /* ppc's cursor max out at 32 by 32 */
  42. else /* either TileShape or StippleShape */
  43.   /* Round Up To Nearest Multiple Of 8 -- We don't care what height they use */
  44.   *pwidth = ( *pwidth + 0x7 ) & ~ 0x7 ;
  45.  
  46. return ;
  47. }
  48.