[GameSurfaceLayer] fix scaling to correct lower panel input forwarding

This commit is contained in:
amwatson 2024-02-20 19:09:02 -06:00
parent dd9788186e
commit 62dbd147da

View file

@ -375,8 +375,8 @@ void GameSurfaceLayer::Frame(const XrSpace& space, std::vector<XrCompositionLaye
layer.pose = mLowerPanelFromWorld; layer.pose = mLowerPanelFromWorld;
const auto scale = GetDensityScaleForSize(panelWidth - cropHoriz, -panelHeight, const auto scale = GetDensityScaleForSize(panelWidth - cropHoriz, -panelHeight,
defaultLowerPanelScaleFactor, mResolutionFactor); defaultLowerPanelScaleFactor, mResolutionFactor);
layer.size.width = scale.x * defaultLowerPanelScaleFactor; layer.size.width = scale.x;
layer.size.height = scale.y * defaultLowerPanelScaleFactor; layer.size.height = scale.y;
layers[layerCount++].mQuad = layer; layers[layerCount++].mQuad = layer;
} }
} }