Parsec

ParsecClientSetDimensions

ParsecStatusParsecClientSetDimensions(Parsec *
ps,
uint8_t
stream,
uint32_t
width,
uint32_t
height,
float
scale
)

Set client window dimensions and screen scale.

The window size and screen scale are used internally to translate mouse coordinates and set the viewport during rendering (if RenderFrame wrappers are used).

Parameters

DirectionNameDescription
inpsParsec instance returned by ParsecInit.
instreamVideo stream index. Must be less than NUM_VSTREAMS.
inwidthThe window width in screen coordinates.
inheightThe window height in screen coordinates.
inscaleThe screen scale used to translate device screen coordinates into pixels.

Returns

PARSEC_OK on success or PARSEC_NOT_RUNNING if the client is not connected.