Skip to content
Permalink
Browse files

Fix the 270 degree rotation case

  • Loading branch information...
hrydgard committed Jun 21, 2019
1 parent e943724 commit ee294251c9bbe4d1b7ae3af4c107ffc6e113db65
Showing with 4 additions and 1 deletion.
  1. +4 −1 ext/native/thin3d/thin3d.cpp
@@ -375,7 +375,10 @@ void DrawContext::RotateRectToDisplay(FRect &rect, float curRTWidth, float curRT
case DisplayRotation::ROTATE_270: {
float origX = rect.x;
float origY = rect.y;
// TODO
float rtw = curRTHeight;
float rth = curRTWidth;
rect.x = origY;
rect.y = rtw - rect.w - origX;
std::swap(rect.w, rect.h);
break;
}

0 comments on commit ee29425

Please sign in to comment.
You can’t perform that action at this time.