--- old/src/java.desktop/unix/native/libawt_xawt/awt/Xrandr.h 2016-05-13 09:34:03.446628757 +0300 +++ new/src/java.desktop/unix/native/libawt_xawt/awt/Xrandr.h 2016-05-13 09:34:03.302628762 +0300 @@ -5,8 +5,8 @@ /* * $XFree86: xc/lib/Xrandr/Xrandr.h,v 1.9 2002/09/29 23:39:44 keithp Exp $ * - * Copyright © 2000 Compaq Computer Corporation, Inc. - * Copyright © 2002 Hewlett-Packard Company, Inc. + * Copyright � 2000 Compaq Computer Corporation, Inc. + * Copyright � 2002 Hewlett-Packard Company, Inc. * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -66,6 +66,65 @@ int mheight; } XRRScreenChangeNotifyEvent; +typedef XID RROutput; +typedef XID RRCrtc; +typedef XID RRMode; + +typedef unsigned long XRRModeFlags; + +typedef struct { + RRMode id; + unsigned int width; + unsigned int height; + unsigned long dotClock; + unsigned int hSyncStart; + unsigned int hSyncEnd; + unsigned int hTotal; + unsigned int hSkew; + unsigned int vSyncStart; + unsigned int vSyncEnd; + unsigned int vTotal; + char *name; + unsigned int nameLength; + XRRModeFlags modeFlags; +} XRRModeInfo; + +typedef struct { + Time timestamp; + Time configTimestamp; + int ncrtc; + RRCrtc *crtcs; + int noutput; + RROutput *outputs; + int nmode; + XRRModeInfo *modes; +} XRRScreenResources; + +typedef struct { + Time timestamp; + RRCrtc crtc; + char *name; + int nameLen; + unsigned long mm_width; + unsigned long mm_height; + Connection connection; + SubpixelOrder subpixel_order; + int ncrtc; + RRCrtc *crtcs; + int nclone; + RROutput *clones; + int nmode; + int npreferred; + RRMode *modes; +} XRROutputInfo; + +XRRScreenResources *XRRGetScreenResources (Display *dpy, Window window); + +void XRRFreeScreenResources (XRRScreenResources *resources); + +XRROutputInfo * XRRGetOutputInfo (Display *dpy, XRRScreenResources *resources, + RROutput output); +void XRRFreeOutputInfo (XRROutputInfo *outputInfo); /* internal representation is private to the library */ typedef struct _XRRScreenConfiguration XRRScreenConfiguration;