set screen parameters before using them