cc: Fix hudLayer size and paint rects scale for deviceScaleFactor != 1