Skip to content

Commit

Permalink
Revert a supposed code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
gzotti committed Dec 10, 2022
1 parent e327468 commit e624ccd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/core/StelProjector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,13 @@ void StelProjector::init(const StelProjectorParams& params)
zNear = params.zNear;
oneOverZNearMinusZFar = 1./(zNear-params.zFar);
viewportCenterOffset = params.viewportCenterOffset;
viewportXywh = params.viewportXywh * devicePixelsPerPixel;
viewportCenter = params.viewportCenter * devicePixelsPerPixel;
viewportXywh = params.viewportXywh;
viewportXywh[0] *= devicePixelsPerPixel;
viewportXywh[1] *= devicePixelsPerPixel;
viewportXywh[2] *= devicePixelsPerPixel;
viewportXywh[3] *= devicePixelsPerPixel;
viewportCenter = params.viewportCenter;
viewportCenter *= devicePixelsPerPixel;
gravityLabels = params.gravityLabels;
defaultAngleForGravityText = params.defaultAngleForGravityText;
flipHorz = params.flipHorz ? -1.f : 1.f;
Expand Down

0 comments on commit e624ccd

Please sign in to comment.