mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
wip1
This commit is contained in:
@@ -55,11 +55,13 @@ SOFTWARE.
|
||||
#include "dixstruct.h"
|
||||
#include "cursorstr.h"
|
||||
#include "privates.h"
|
||||
#include "scrnintstr.h"
|
||||
|
||||
#define BitIsOn(ptr, bit) (!!(((const BYTE *) (ptr))[(bit)>>3] & (1 << ((bit) & 7))))
|
||||
#define SetBit(ptr, bit) (((BYTE *) (ptr))[(bit)>>3] |= (1 << ((bit) & 7)))
|
||||
#define ClearBit(ptr, bit) (((BYTE *)(ptr))[(bit)>>3] &= ~(1 << ((bit) & 7)))
|
||||
|
||||
#define MAXDEVICES 256 /* input devices */
|
||||
#define EMASKSIZE (MAXDEVICES + 2)
|
||||
|
||||
/* This is the last XI2 event supported by the server. If you add
|
||||
|
||||
@@ -81,23 +81,8 @@ OF THIS SOFTWARE.
|
||||
#include <stdint.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#ifndef MAXSCREENS
|
||||
#define MAXSCREENS 16
|
||||
#endif
|
||||
#ifndef MAXGPUSCREENS // unexport
|
||||
#define MAXGPUSCREENS 16
|
||||
#endif
|
||||
#define MAXFORMATS 8 // unexport
|
||||
#ifndef MAXDEVICES // unexport
|
||||
#define MAXDEVICES 256 /* input devices */
|
||||
#endif
|
||||
#define GPU_SCREEN_OFFSET 256
|
||||
|
||||
/* 128 event opcodes for core + extension events, excluding GE */
|
||||
#define MAXEVENTS 128 // unexport
|
||||
#define EXTENSION_EVENT_BASE 64 // unexport
|
||||
#define EXTENSION_BASE 128 // unexport
|
||||
|
||||
typedef uint32_t ATOM;
|
||||
|
||||
/* @brief generic X return code
|
||||
|
||||
@@ -502,6 +502,10 @@ typedef void (*DPMSProcPtr)(ScreenPtr pScreen, int level);
|
||||
use dixScreenHookWindowDestroy() instead.
|
||||
*/
|
||||
|
||||
#define MAXSCREENS 16
|
||||
#define MAXGPUSCREENS 16
|
||||
#define MAXFORMATS 8
|
||||
|
||||
#define _SCREEN_HOOK_TYPE(NAME, FUNCTYPE, ARRSIZE) \
|
||||
struct { \
|
||||
FUNCTYPE func; \
|
||||
|
||||
Reference in New Issue
Block a user