direct3d9: use the sys/region variables directly