This commit is contained in:
Enrico Weigelt, metux IT consult
2025-11-24 17:07:39 +01:00
parent 1ad0feba7b
commit 885339b2dd
9 changed files with 19 additions and 15 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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; \