Merge sys-clk-oc and add upto 2903 clocks (please don't use)
I do have to come up with a better name too...
This commit is contained in:
64
Source/sys-clk-OC/manager/src/cheat_sheet_tab.cpp
Normal file
64
Source/sys-clk-OC/manager/src/cheat_sheet_tab.cpp
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
sys-clk manager, a sys-clk frontend homebrew
|
||||
Copyright (C) 2019-2020 natinusala
|
||||
Copyright (C) 2019 p-sam
|
||||
Copyright (C) 2019 m4xw
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "cheat_sheet_tab.h"
|
||||
|
||||
#include <borealis.hpp>
|
||||
|
||||
CheatSheetTab::CheatSheetTab()
|
||||
{
|
||||
// CPU
|
||||
this->addView(new brls::Header("CPU Clocks"));
|
||||
brls::Table *cpuTable = new brls::Table();
|
||||
|
||||
cpuTable->addRow(brls::TableRowType::BODY, "Maximum", "1785 MHz");
|
||||
cpuTable->addRow(brls::TableRowType::BODY, "Official Docked and Handheld", "1020 MHz");
|
||||
|
||||
this->addView(cpuTable);
|
||||
|
||||
// GPU
|
||||
this->addView(new brls::Header("GPU Clocks"));
|
||||
brls::Table *gpuTable = new brls::Table();
|
||||
|
||||
gpuTable->addRow(brls::TableRowType::BODY, "Maximum", "921 MHz");
|
||||
gpuTable->addRow(brls::TableRowType::BODY, "Official Docked", "768 MHz");
|
||||
gpuTable->addRow(brls::TableRowType::BODY, "Maximum Mariko Handheld", "614 MHz");
|
||||
gpuTable->addRow(brls::TableRowType::BODY, "Maximum Erista Handheld", "460 MHz");
|
||||
gpuTable->addRow(brls::TableRowType::BODY, "Official Handheld", "384 MHz");
|
||||
|
||||
this->addView(gpuTable);
|
||||
|
||||
// MEM
|
||||
this->addView(new brls::Header("MEM Clocks"));
|
||||
brls::Table *memTable = new brls::Table();
|
||||
|
||||
memTable->addRow(brls::TableRowType::BODY, "Maximum, Official Docked", "1600 MHz");
|
||||
memTable->addRow(brls::TableRowType::BODY, "Official Handheld", "1331 MHz");
|
||||
|
||||
this->addView(memTable);
|
||||
}
|
||||
|
||||
void CheatSheetTab::customSpacing(brls::View* current, brls::View* next, int* spacing)
|
||||
{
|
||||
if (dynamic_cast<brls::Table*>(current))
|
||||
*spacing = 0;
|
||||
else
|
||||
List::customSpacing(current, next, spacing);
|
||||
}
|
||||
Reference in New Issue
Block a user