From d5884ab6036a80fdb5224118c2183523eb303979 Mon Sep 17 00:00:00 2001 From: Alec Miller Date: Thu, 10 Oct 2024 20:25:05 -0700 Subject: [PATCH] kram - fix build --- kramv/KramViewerBase.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kramv/KramViewerBase.cpp b/kramv/KramViewerBase.cpp index 5d0e810..5dd569b 100644 --- a/kramv/KramViewerBase.cpp +++ b/kramv/KramViewerBase.cpp @@ -2933,8 +2933,13 @@ void Data::updateProjTransform() _showSettings->zoomFit = 1; } else { + // ltrb + float2 rectDims = 0.5f * float2m(_showSettings->viewSizeX,_showSettings->viewSizeY); + float4 rect = float4m(-rectDims.x, rectDims.y, + rectDims.x, -rectDims.y); + _projectionMatrix = - orthographic_rhcs(_showSettings->viewSizeX, _showSettings->viewSizeY, 0.1f, 100000.0f); + orthographic_rhcs(rect, 0.1f, 1e6f); // DONE: adjust zoom to fit the entire image to the window _showSettings->zoomFit =