Reorder functions to match api order and assignment order.
Make wlc aware of resolution/viewport size