Added set-frame-size-according-to-resolution etc.

Change-Id: I3bc3ef7c4adf4392b373660b20b8f4292b75d635