Skip to content
Permalink
Browse files

Merge pull request #8477 from jordan-woyak/accel-indicator-flip

DolphinQt: Fix accelerometer mapping indicator flipped X axis.
  • Loading branch information
lioncash committed Nov 17, 2019
2 parents 97f9f25 + 282470e commit 162b7c2ca358e2948a089ccd1ac229139a21122b
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp
@@ -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);
@@ -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).

0 comments on commit 162b7c2

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