sws_flags is unsigned.