Hi
Why is my cursor smaller within my SDL Window and it is outside of the
window? how can i make it the standard windows Cursor? i have tried making a
custom Cursor with set Cursor, which works fine, but again there appears to
be no Function to return back to the standard, it appears that if i make a
custom cursor, i have to stick with it and not give my users chance to swap
back.
T
I don’t exactly know how to put this into a C/C++ version but can’t
you simply grab the pointer to the default cursor before setting the
new cursor?
SDL_Cursor* OriginalCursor = NULL;
OriginalCursor = SDL_GetCursor();
SDL_SetCursor(Newcursor);
SDL_SetCursor(OriginalCursor);
And so on however you need to do it.On 9/7/07, Patricia Curtis <patricia.curtis at gmail.com> wrote:
Hi
Why is my cursor smaller within my SDL Window and it is outside of the
window? how can i make it the standard windows Cursor? i have tried making a
custom Cursor with set Cursor, which works fine, but again there appears to
be no Function to return back to the standard, it appears that if i make a
custom cursor, i have to stick with it and not give my users chance to swap
back.
T
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
I think, what you want to do, is to set some default windows HCURSOR for
your SDL window, right?
As i looked into the win32 code of sdl-1-2, it seems to be very difficult.
I would try to retrieve the mask and color values for a given default
windows cursor and pass it to SDL. This should be possible with
GetIconInfo/GetIconInfoEx and a subsequent call to GetDIBits (which
needs a device context). But this seems to be a lot of work. Maybe
someone has a better solution.
Matthias
Matthew Johnson schrieb:> I don’t exactly know how to put this into a C/C++ version but can’t
you simply grab the pointer to the default cursor before setting the
new cursor?
SDL_Cursor* OriginalCursor = NULL;
OriginalCursor = SDL_GetCursor();
SDL_SetCursor(Newcursor);
SDL_SetCursor(OriginalCursor);
And so on however you need to do it.
On 9/7/07, Patricia Curtis <patricia.curtis at gmail.com> wrote:
Hi
Why is my cursor smaller within my SDL Window and it is outside of the
window? how can i make it the standard windows Cursor? i have tried making a
custom Cursor with set Cursor, which works fine, but again there appears to
be no Function to return back to the standard, it appears that if i make a
custom cursor, i have to stick with it and not give my users chance to swap
back.
T
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org