VgaGames4

VgaGames4 - window man-pages

[.. upper level ..]

# 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, or -1 = don't change
scale | Scaling of the window: one of VG_WINDOW_SCALES, or -1 = don't change

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
vg4->window->size_extend() vg4->window->open() vg4->window->close() vg4->window->getsize() vg4->window->getparameters()