VirtualBox

Changeset 92992 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Dec 16, 2021 6:06:19 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148976
Message:

iprt: xrandr headers: fix build, bugref:10134.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/xrandr.h

    r92989 r92992  
    3434#include <iprt/stdarg.h>
    3535
    36 #include <X11/Xlibint.h>
    37 #include <X11/extensions/Xrandr.h>
    38 
    3936#ifndef __cplusplus
    4037# error "This header requires C++ to avoid name clashes."
    4138#endif
     39
     40/* Define missing X11/XRandr structures, types and macros. */
     41
     42#define Bool                        int
     43#define RRScreenChangeNotifyMask    (1L << 0)
     44#define RRScreenChangeNotify        0
     45
     46struct _XDisplay;
     47typedef struct _XDisplay Display;
     48
     49typedef unsigned long Atom;
     50typedef unsigned long XID;
     51typedef XID RROutput;
     52typedef XID Window;
     53
     54struct XRRMonitorInfo
     55{
     56    Atom name;
     57    Bool primary;
     58    Bool automatic;
     59    int noutput;
     60    int x;
     61    int y;
     62    int width;
     63    int height;
     64    int mwidth;
     65    int mheight;
     66    RROutput *outputs;
     67};
     68typedef struct XRRMonitorInfo XRRMonitorInfo;
     69
    4270
    4371/* Declarations of the functions that we need from libXrandr */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette