Skip to content

Commit

Permalink
Merge pull request #8477 from jordan-woyak/accel-indicator-flip
Browse files Browse the repository at this point in the history
DolphinQt: Fix accelerometer mapping indicator flipped X axis.
  • Loading branch information
lioncash committed Nov 17, 2019
2 parents 97f9f25 + 282470e commit 162b7c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp
Expand Up @@ -716,8 +716,8 @@ void AccelerometerMappingIndicator::paintEvent(QPaintEvent*)
p.setPen(GetBBoxPen());
p.drawRect(-scale - 1, -scale - 1, scale * 2 + 1, scale * 2 + 1);

// UI y-axis is opposite that of acceleration Z.
p.scale(1.0, -1.0);
// UI axes are opposite that of Wii remote accelerometer.
p.scale(-1.0, -1.0);

// Enable AA after drawing bounding box.
p.setRenderHint(QPainter::Antialiasing, true);
Expand Down Expand Up @@ -780,7 +780,7 @@ void AccelerometerMappingIndicator::paintEvent(QPaintEvent*)

// G-force text:
p.setPen(GetTextColor());
p.scale(1.0, -1.0);
p.scale(-1.0, -1.0);
p.drawText(QRectF(-2, 0, scale, scale), Qt::AlignBottom | Qt::AlignRight,
QString::fromStdString(
// i18n: "g" is the symbol for "gravitational force equivalent" (g-force).
Expand Down

0 comments on commit 162b7c2

Please sign in to comment.