Hello, all
Does SDL provide any kind of error-handling for its facili-
ties SDL_CreateCursor() and SDL_SetCursor() for the imple-
mentation of custom cursors? I am trying to implement a
cross-platform function that shall generate a cursor bitmap
of a size suitable to for the current display dimensions and
DPI, in order that it shall not look too large or too small.
Unfortunately, my test program simply crashes if I try to
install a cursor larger than a certain OS-specific limit.
For example, my development machine with Windows XP supports
cursors up to 32x32 pixels, but no larger ā a fact I found
out by direct experiment ā tyring various sizes and seeing
whether they caused a crash.
Is there a more elegant dynamic way of determining the maxi-
mum cursor size, for I would rather not hard-code it into my
algorithm for each OS?