svga: use the sws local var to simplify some code