Skip to content

Commit 808672a

Browse files
committed
Convert TSDL_SystemCursor from a Word alias to a separate integer type
1 parent 4de6557 commit 808672a

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

sdlmouse.inc

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,27 @@
33
type
44
PSDL_Cursor = Pointer;
55

6-
const
7-
8-
{**
9-
* Cursor types for SDL_CreateSystemCursor.
10-
*}
11-
12-
SDL_SYSTEM_CURSOR_ARROW = 0; // Arrow
13-
SDL_SYSTEM_CURSOR_IBEAM = 1; // I-beam
14-
SDL_SYSTEM_CURSOR_WAIT = 2; // Wait
15-
SDL_SYSTEM_CURSOR_CROSSHAIR = 3; // Crosshair
16-
SDL_SYSTEM_CURSOR_WAITARROW = 4; // Small wait cursor (or Wait if not available)
17-
SDL_SYSTEM_CURSOR_SIZENWSE = 5; // Double arrow pointing northwest and southeast
18-
SDL_SYSTEM_CURSOR_SIZENESW = 6; // Double arrow pointing northeast and southwest
19-
SDL_SYSTEM_CURSOR_SIZEWE = 7; // Double arrow pointing west and east
20-
SDL_SYSTEM_CURSOR_SIZENS = 8; // Double arrow pointing north and south
21-
SDL_SYSTEM_CURSOR_SIZEALL = 9; // Four pointed arrow pointing north, south, east, and west
22-
SDL_SYSTEM_CURSOR_NO = 10; // Slashed circle or crossbones
23-
SDL_SYSTEM_CURSOR_HAND = 11; // Hand
24-
SDL_NUM_SYSTEM_CURSORS = 12;
25-
6+
{**
7+
* Cursor types for SDL_CreateSystemCursor.
8+
*}
269
type
2710
PSDL_SystemCursor = ^TSDL_SystemCursor;
28-
TSDL_SystemCursor = Word;
11+
TSDL_SystemCursor = type Word;
12+
const
13+
SDL_SYSTEM_CURSOR_ARROW = TSDL_SystemCursor(0); // Arrow
14+
SDL_SYSTEM_CURSOR_IBEAM = TSDL_SystemCursor(1); // I-beam
15+
SDL_SYSTEM_CURSOR_WAIT = TSDL_SystemCursor(2); // Wait
16+
SDL_SYSTEM_CURSOR_CROSSHAIR = TSDL_SystemCursor(3); // Crosshair
17+
SDL_SYSTEM_CURSOR_WAITARROW = TSDL_SystemCursor(4); // Small wait cursor (or Wait if not available)
18+
SDL_SYSTEM_CURSOR_SIZENWSE = TSDL_SystemCursor(5); // Double arrow pointing northwest and southeast
19+
SDL_SYSTEM_CURSOR_SIZENESW = TSDL_SystemCursor(6); // Double arrow pointing northeast and southwest
20+
SDL_SYSTEM_CURSOR_SIZEWE = TSDL_SystemCursor(7); // Double arrow pointing west and east
21+
SDL_SYSTEM_CURSOR_SIZENS = TSDL_SystemCursor(8); // Double arrow pointing north and south
22+
SDL_SYSTEM_CURSOR_SIZEALL = TSDL_SystemCursor(9); // Four pointed arrow pointing north, south, east, and west
23+
SDL_SYSTEM_CURSOR_NO = TSDL_SystemCursor(10); // Slashed circle or crossbones
24+
SDL_SYSTEM_CURSOR_HAND = TSDL_SystemCursor(11); // Hand
25+
SDL_NUM_SYSTEM_CURSORS = TSDL_SystemCursor(12);
26+
2927

3028
{* Function prototypes *}
3129

0 commit comments

Comments
 (0)