cf_app_set_canvas_size¶
Category: app
GitHub: cute_app.h
Resizes the app's internal canvas to a new w/h, in pixels.
| Parameters | Description |
|---|---|
w |
The width in pixels to resize the canvas to. |
h |
The height in pixels to resize the canvas to. |
Remarks¶
Be careful about calling this function, as it will invalidate any old references from cf_app_get_canvas. Calling this pins the canvas to an exact device-pixel size and opts out of CF's automatic pixel-density-based canvas scaling -- the canvas will no longer auto-resize if the window moves to a display with a different pixel density.
Related Pages¶
cf_app_get_canvas
cf_app_get_canvas_width
cf_app_get_canvas_height
cf_app_set_vsync
cf_app_get_vsync