|
Size: 863
Comment: update content for consistency
|
Size: 867
Comment: update content (w/ Sam); remove 'draft' note
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| ||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| | |
| Line 19: | Line 18: |
| ||'''w'''||the width of the window ^in pixels^|| ||'''h'''||the height of the window ^in pixels^|| |
||'''w'''||the width of the window in pixels|| ||'''h'''||the height of the window in pixels|| |
| Line 28: | Line 27: |
| You can't change the size of a fullscreen window, it automatically matches the size of the display mode. | This function sets the size for a windowed window. To change the size of a fullscreen window use [[SDL_SetWindowDisplayMode]]() instead. |
| Line 32: | Line 31: |
| .[[SDL_SetWindowDisplayMode]] |
SDL_SetWindowSize
Use this function to set the size of the window's client area.
Syntax
void SDL_SetWindowSize(SDL_Window* window,
int w,
int h)
Function Parameters
window |
the window to change |
w |
the width of the window in pixels |
h |
the height of the window in pixels |
Code Examples
You can add your code example here
Remarks
This function sets the size for a windowed window. To change the size of a fullscreen window use SDL_SetWindowDisplayMode() instead.
