33 const float pixelDensity = SDL_GetWindowPixelDensity(window);
36 const float x = SDL_roundf(rect->x * pixelDensity);
37 const float y = SDL_roundf(rect->y * pixelDensity);
38 const float w = SDL_roundf(rect->w * pixelDensity);
39 const float h = SDL_roundf(rect->h * pixelDensity);