diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-02 21:47:06 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-02 21:47:06 -0300 |
commit | 113a35d0fe8938973fa1c100b77f456ed250e61b (patch) | |
tree | 586d1c3113082cbb2b92cd46c3c96a25a0e75e67 /Project/SwitchingForm.cpp | |
parent | 6ce2bdcf85dffee6b6ef7b95b888b8b96372a3d6 (diff) | |
download | PSP.git-113a35d0fe8938973fa1c100b77f456ed250e61b.tar.gz PSP.git-113a35d0fe8938973fa1c100b77f456ed250e61b.tar.xz PSP.git-113a35d0fe8938973fa1c100b77f456ed250e61b.zip |
OpenGL bugfixes and wxGC port alternative init
OpenGL major bugfixes;
Device context port alternative to OpenGL code init (WorkspaceDC). Some machines don't support OpenGL 3+;
Fixed some issues with MSVC.
Diffstat (limited to 'Project/SwitchingForm.cpp')
-rw-r--r-- | Project/SwitchingForm.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Project/SwitchingForm.cpp b/Project/SwitchingForm.cpp index 8a52553..8b3a5fd 100644 --- a/Project/SwitchingForm.cpp +++ b/Project/SwitchingForm.cpp @@ -37,7 +37,7 @@ SwitchingForm::SwitchingForm(wxWindow* parent, PowerElement* element) : Switchin SwitchingData data = element->GetSwitchingData(); for(int i = 0; i < (int)data.swType.size(); i++) { - long index = m_listCtrlSwitchings->InsertItem(m_maxID, data.swType[i] == SW_INSERT ? _("Insert") : _("Remove")); + long index = m_listCtrlSwitchings->InsertItem(m_maxID, data.swType[i] == SwitchingType::SW_INSERT ? _("Insert") : _("Remove")); m_listCtrlSwitchings->SetItem(index, 1, wxString::FromDouble(data.swTime[i])); m_maxID++; } @@ -67,9 +67,9 @@ void SwitchingForm::OnOKButtonClick(wxCommandEvent& event) SwitchingData data; for(int i = 0; i < (int)itemList.size(); i++) { if(m_listCtrlSwitchings->GetItemText(itemList[i], 0) == _("Insert")) - data.swType.push_back(SW_INSERT); + data.swType.push_back(SwitchingType::SW_INSERT); else - data.swType.push_back(SW_REMOVE); + data.swType.push_back(SwitchingType::SW_REMOVE); double swTime; m_listCtrlSwitchings->GetItemText(itemList[i], 1).ToDouble(&swTime); |