Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
56 user(s) are online (49 user(s) are browsing Forums)

Members: 0
Guests: 56

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: SDL1 open issues

Subject: Re: SDL1 open issues
by kas1e on 2018/1/13 16:46:00

@Capehill
Made some more experiments, and found that they specially did that 1 pixel transparent cursor. As they write before in comment, that is trick "Showingthe SDL 1 pixel transparent cursor allows us to get absolute mouse coordinates, this means we can use tablet in fullscreen mode."

Then, their code looks like:

SDL_FreeCursor(cur);
 
cur SDL_CreateCursor(&cursorData, &cursorData1,1,0,0);

 if (
cur != NULL)
  {
    
SDL_SetCursor(cur);
    
SDL_ShowCursor(SDL_ENABLE); // show the SDL 1 pixel transparent cursor
  
}
  else
  {
     
failed to create the 1 pixel transparent cursor
    SDL_ShowCursor
(SDL_DISABLE); // Hide the SDL mouse cursor, we use our own internal one
  
}
}


Once i comment out part with SDL_SetCursor(cur); and SDL_ShowCursor(SDL_ENABLE); , and keep SDL_ShowCursor(SDL_DISABLE); (so to hide sdl mouse cursor , and user internal one), then all start to works as should, no distortion, all is fine.

What mean, imho, that something can be wrong with our SDL_SetCursor() and or SDL_ShowCursor() when it come to 1 pixel transpent one..
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project