src/video/Xext/extensions/xme.h
author Ryan C. Gordon
Sun, 29 Oct 2006 02:46:42 +0000
branchSDL-1.2
changeset 3885 a10bddfdc40f
parent 1242 caf0328c8058
permissions -rw-r--r--
Closing minor memory leak in XME code.
icculus@1242
     1
/*
icculus@1242
     2
 * Copyright 1993-2001 by Xi Graphics, Inc.
icculus@1242
     3
 * All Rights Reserved.
icculus@1242
     4
 *
icculus@1242
     5
 * Please see the LICENSE file accompanying this distribution for licensing 
icculus@1242
     6
 * information. 
icculus@1242
     7
 *
icculus@1242
     8
 * Please send any bug fixes and modifications to src@xig.com.
icculus@1242
     9
 *
icculus@1242
    10
 * $XiGId: xme.h,v 1.1.1.1 2001/11/19 19:01:10 jon Exp $
icculus@1242
    11
 *
icculus@1242
    12
 */
icculus@1242
    13
icculus@1242
    14
icculus@1242
    15
#ifndef _XME_H_INCLUDED 
icculus@1242
    16
#define _XME_H_INCLUDED
icculus@1242
    17
icculus@1242
    18
typedef struct {        
icculus@1242
    19
  short		        x;
icculus@1242
    20
  short		        y;
icculus@1242
    21
  unsigned short	w;
icculus@1242
    22
  unsigned short	h;
icculus@1242
    23
} XiGMiscViewInfo;
icculus@1242
    24
icculus@1242
    25
typedef struct {        
icculus@1242
    26
  unsigned short        width;
icculus@1242
    27
  unsigned short        height;
icculus@1242
    28
  int                   refresh;
icculus@1242
    29
} XiGMiscResolutionInfo;
icculus@1242
    30
icculus@1242
    31
extern Bool XiGMiscQueryVersion(Display *dpy, int *major, int *minor);
icculus@1242
    32
extern int XiGMiscQueryViews(Display *dpy, int screen, 
icculus@1242
    33
			     XiGMiscViewInfo **pviews);
icculus@1242
    34
extern int XiGMiscQueryResolutions(Display *dpy, int screen, int view, 
icculus@1242
    35
			    int *pactive, 
icculus@1242
    36
			    XiGMiscResolutionInfo **presolutions);
icculus@1242
    37
extern void XiGMiscChangeResolution(Display *dpy, int screen, int view, 
icculus@1242
    38
			     int width, int height, int refresh);
icculus@3885
    39
icculus@3885
    40
/* SDL addition from Ryan: free memory used by xme. */
icculus@3885
    41
extern void XiGMiscDestroy(void);
icculus@3885
    42
icculus@1242
    43
#endif /* _XME_H_INCLUDED */
icculus@1242
    44
icculus@1242
    45