Skip to content

Commit

Permalink
kram - fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
alecazam committed Oct 11, 2024
1 parent fc4d013 commit d5884ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kramv/KramViewerBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit d5884ab

Please sign in to comment.