mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 15:00:30 +02:00
Minor initialization cleanups
This commit is contained in:
1 parent
976190cd4d
commit
f68ba55f96
5 files changed
+17
-26
No files matched your search
@@ -308,13 +308,8 @@ private:
|
||||
|
||||
class SnapGrid : public UI::View {
|
||||
public:
|
||||
SnapGrid(int leftMargin, int rightMargin, int topMargin, int bottomMargin, u32 color) {
|
||||
x1 = leftMargin;
|
||||
x2 = rightMargin;
|
||||
y1 = topMargin;
|
||||
y2 = bottomMargin;
|
||||
col = color;
|
||||
}
|
||||
SnapGrid(int leftMargin, int rightMargin, int topMargin, int bottomMargin, u32 color)
|
||||
: UI::View(), x1(leftMargin), x2(rightMargin), y1(topMargin), y2(bottomMargin), col(color) {}
|
||||
|
||||
void Draw(UIContext &dc) override {
|
||||
if (g_Config.bTouchSnapToGrid) {
|
||||
@@ -602,7 +597,7 @@ UI::EventReturn TouchControlLayoutScreen::OnMode(UI::EventParams &e) {
|
||||
}
|
||||
|
||||
void TouchControlLayoutScreen::update() {
|
||||
UIDialogScreenWithBackground::update();
|
||||
UIDialogScreenWithGameBackground::update();
|
||||
|
||||
// TODO: We really, really need a cleaner solution for creating sub-views
|
||||
// of custom compound controls.
|
||||
|
||||
Reference in new issue
Block a user