Function Window.sizeInPixels

Wraps SDL_GetWindowSizeInPixels (from SDL 2.26) which gets the actual size of the window in the screen in pixels

uint[2] sizeInPixels() @property @trusted const;

Returns

actual size of the window in the screen in pixels