vg4->window->reopen()
Reopen window.
SYNTAX
VG_BOOL
vg4->window->reopen(int size, int scale)
FUNCTION PARAMETERS
size | Size of the window: one of VG_WINDOW_SIZES |
scale | Scaling of the window: one of VG_WINDOW_SCALES |
RETURN VALUE
Returns boolean:
- VG_TRUE: OK
- VG_FALSE: Error
DESCRIPTION
Reopen window.
The parameter size indicates the number of virtual pixels,
the parameter scale indicates the scaling.
Unlike closing and opening the window,
reopening will not remove inserted keys with vg4->input->key_insert().
EXAMPLE
if (!vg4->window->reopen(VG_WINDOW_SIZE_LOW, VG_WINDOW_SCALE_BEST)) { VG_dest(); exit(1); }
SEE ALSO