# SetWindowSize

## Description

This sets the window size for platforms that support it, such as Windows and Mac. This will not affect mobile devices. In fullscreen mode the width and height will be ignored and the desktop resolution will be used. By default the window size will be adjusted so it always fits on screen, including making room for the taskbar on Windows. This means that your final window size may be slightly smaller than your chosen size. You can override this by setting the allowOverSized parameter to 1, which will remove all bounds checks and allow you to create windows larger than the current screen. When the fullscreen parameter is set to 1 then the allowOverSized parameter has no effect.

## Definition

SetWindowSize( width, height, fullscreen, allowOverSized )

void agk::SetWindowSize( int width, int height, int fullscreen, int allowOverSized )

SetWindowSize( width, height, fullscreen )

void agk::SetWindowSize( int width, int height, int fullscreen )

## Parameters

- width - The desired width of the window in pixels.
- height - The desired height of the window in pixels.
- fullscreen - 1 to use a full screen mode, 0 for a normal window.
- allowOverSized - 1 to allow the window size to exceed the visible screen, 0 to shrink it to fit where necessary