Merge branch 'master-basic'

This commit is contained in:
Amine B. Hassouna
2018-12-01 15:40:16 +01:00

View File

@@ -49,6 +49,15 @@ int main(int argc, char* argv[])
return 0;
}
#if linux && SDL_VERSION_ATLEAST(2, 0, 8)
// Disable compositor bypass
if(!SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0"))
{
printf("SDL can not disable compositor bypass!\n");
return 0;
}
#endif
// Create window
SDL_Window *window = SDL_CreateWindow("Basic C SDL game",
SDL_WINDOWPOS_UNDEFINED,