mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-14 00:17:38 +00:00
Make clang-format happy
This commit is contained in:
parent
e65bd269d4
commit
ae60733e67
@ -488,27 +488,31 @@ void CMainDialog::TexturePathEdited()
|
||||
UpdateInterface();
|
||||
}
|
||||
|
||||
void CMainDialog::AspectRatioChanged(int index) {
|
||||
void CMainDialog::AspectRatioChanged(int index)
|
||||
{
|
||||
currentConfigApp->m_aspect_ratio = index;
|
||||
EnsureAspectRatio();
|
||||
m_modified = true;
|
||||
UpdateInterface();
|
||||
}
|
||||
|
||||
void CMainDialog::XResChanged(int i) {
|
||||
void CMainDialog::XResChanged(int i)
|
||||
{
|
||||
currentConfigApp->m_x_res = i;
|
||||
m_modified = true;
|
||||
UpdateInterface();
|
||||
}
|
||||
|
||||
void CMainDialog::YResChanged(int i) {
|
||||
void CMainDialog::YResChanged(int i)
|
||||
{
|
||||
currentConfigApp->m_y_res = i;
|
||||
EnsureAspectRatio();
|
||||
m_modified = true;
|
||||
UpdateInterface();
|
||||
}
|
||||
|
||||
void CMainDialog::EnsureAspectRatio() {
|
||||
void CMainDialog::EnsureAspectRatio()
|
||||
{
|
||||
if (currentConfigApp->m_aspect_ratio != 3) {
|
||||
m_ui->xResSpinBox->setReadOnly(true);
|
||||
switch (currentConfigApp->m_aspect_ratio) {
|
||||
@ -533,7 +537,8 @@ void CMainDialog::EnsureAspectRatio() {
|
||||
}
|
||||
}
|
||||
|
||||
void CMainDialog::FramerateChanged(int i) {
|
||||
void CMainDialog::FramerateChanged(int i)
|
||||
{
|
||||
currentConfigApp->m_frame_delta = (1000.0f / static_cast<float>(i));
|
||||
m_modified = true;
|
||||
UpdateInterface();
|
||||
|
||||
@ -1095,7 +1095,6 @@ bool IsleApp::LoadConfig()
|
||||
m_videoParam.GetRect() = MxRect32(0, 0, (m_xRes - 1), (m_yRes - 1));
|
||||
m_frameDelta = static_cast<int>(std::round(iniparser_getdouble(dict, "isle:Frame Delta", m_frameDelta)));
|
||||
|
||||
|
||||
const char* deviceId = iniparser_getstring(dict, "isle:3D Device ID", NULL);
|
||||
if (deviceId != NULL) {
|
||||
m_deviceId = new char[strlen(deviceId) + 1];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user