Reduce double click radius

SDL uses 32 pixels by default, which is a bit too much and causes 
problems with, for example, adding multiple close selections too 
quickly.
This commit is contained in:
Guldoman 2022-08-21 19:08:32 +02:00
parent 9b1bfeacac
commit cbe0fd63bf
No known key found for this signature in database
GPG Key ID: EA928C8BDA1A8825
1 changed files with 3 additions and 0 deletions

View File

@ -117,6 +117,9 @@ int main(int argc, char **argv) {
** It also enables aero-snap on Windows apparently. */
SDL_SetHint("SDL_BORDERLESS_RESIZABLE_STYLE", "1");
#endif
#if SDL_VERSION_ATLEAST(2, 0, 9)
SDL_SetHint("SDL_MOUSE_DOUBLE_CLICK_RADIUS", "4");
#endif
SDL_DisplayMode dm;
SDL_GetCurrentDisplayMode(0, &dm);