Permalink
Browse files

Qt/TAS: Fix slightly off-center default values

  • Loading branch information...
spycrab committed Jun 29, 2018
1 parent bd28bf6 commit eac5d3d0896ef56e9fb85da0d198d8087be356ab
Showing with 8 additions and 4 deletions.
  1. +4 −2 Source/Core/DolphinQt2/TAS/Shared.cpp
  2. +4 −2 Source/Core/DolphinQt2/TAS/WiiTASInputWindow.cpp
@@ -4,6 +4,8 @@
#include "DolphinQt2/TAS/Shared.h"
#include <cmath>
#include <QGroupBox>
#include <QHBoxLayout>
#include <QLabel>
@@ -47,8 +49,8 @@ QGroupBox* CreateStickInputs(QDialog* window, QString name, QSpinBox*& x_value,
window->connect(visual, &StickWidget::ChangedX, x_value, &QSpinBox::setValue);
window->connect(visual, &StickWidget::ChangedY, y_value, &QSpinBox::setValue);
x_value->setValue(max_x / 2);
y_value->setValue(max_y / 2);
x_value->setValue(static_cast<int>(std::round(max_x / 2.)));
y_value->setValue(static_cast<int>(std::round(max_y / 2.)));
auto* visual_ar = new AspectRatioWidget(visual, max_x, max_y);
@@ -4,6 +4,8 @@
#include "DolphinQt2/TAS/WiiTASInputWindow.h"
#include <cmath>
#include <QCheckBox>
#include <QGroupBox>
#include <QHBoxLayout>
@@ -55,8 +57,8 @@ WiiTASInputWindow::WiiTASInputWindow(QWidget* parent, int num) : QDialog(parent)
connect(visual, &IRWidget::ChangedX, m_ir_x_value, &QSpinBox::setValue);
connect(visual, &IRWidget::ChangedY, m_ir_y_value, &QSpinBox::setValue);
m_ir_x_value->setValue(ir_max_x / 2);
m_ir_y_value->setValue(ir_max_y / 2);
m_ir_x_value->setValue(static_cast<int>(std::round(ir_max_x / 2.)));
m_ir_y_value->setValue(static_cast<int>(std::round(ir_max_y / 2.)));
auto* visual_ar = new AspectRatioWidget(visual, ir_max_x, ir_max_y);

0 comments on commit eac5d3d

Please sign in to comment.