st/wgl: refactor stw_pixelformat_init()