Skip to content

Commit 037a2e5

Browse files
committed
include: unexport CURSOR_BITS_SIZE() and CURSOR_REC_SIZE() macros
Not used by any drivers, so no need to keep them public. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
1 parent 5f8edd4 commit 037a2e5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

dix/cursor_priv.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
#include "include/input.h"
1717
#include "include/window.h"
1818

19+
#define CURSOR_BITS_SIZE (sizeof(CursorBits) + (size_t)dixPrivatesSize(PRIVATE_CURSOR_BITS))
20+
#define CURSOR_REC_SIZE (sizeof(CursorRec) + (size_t)dixPrivatesSize(PRIVATE_CURSOR))
21+
1922
extern CursorPtr rootCursor;
2023

2124
/* reference counting */

include/cursorstr.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ typedef struct _CursorBits {
6767
CARD32 *argb; /* full-color alpha blended */
6868
} CursorBits, *CursorBitsPtr;
6969

70-
#define CURSOR_BITS_SIZE (sizeof(CursorBits) + (size_t)dixPrivatesSize(PRIVATE_CURSOR_BITS))
71-
7270
typedef struct _Cursor {
7371
CursorBitsPtr bits;
7472
unsigned short foreRed, foreGreen, foreBlue; /* device-independent color */
@@ -80,8 +78,6 @@ typedef struct _Cursor {
8078
Atom name;
8179
} CursorRec;
8280

83-
#define CURSOR_REC_SIZE (sizeof(CursorRec) + (size_t)dixPrivatesSize(PRIVATE_CURSOR))
84-
8581
typedef struct _CursorMetric {
8682
unsigned short width, height, xhot, yhot;
8783
} CursorMetricRec;

0 commit comments

Comments
 (0)