@@ -171,6 +171,9 @@ class UnityTestCase(AutopilotTestCase):
171171 else:
172172 self.grid_size = int(self.grid_unit_px / scale_divisor)
173173 self._environment["GRID_UNIT_PX"] = str(self.grid_size)
174+ # FIXME this is only needed for Hud.get_close_button_coords
175+ # we should probably rework it so that it's not required
176+ self.patch_environment("GRID_UNIT_PX", str(self.grid_size))
174177
175178 def _geo_larger_than_display(self, width, height):
176179 should_scale = getattr(self, 'scale_geo', True)