mirror of
https://github.com/amwatson/CitraVR.git
synced 2024-09-20 03:11:40 +02:00
[GameSurfaceLayer] fix scaling to correct lower panel input forwarding
This commit is contained in:
parent
dd9788186e
commit
62dbd147da
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue