Define viewport geometry depending on platform.

Signed-off-by: matsi <matsi@example.org>