fn init_frame(frame: &mut Frame, ctx: &CONTEXT) -> u16