fixed dynamic resolution support, moved over from SDL plugin