x86 fix for ItemWeight use

This commit is contained in:
Jaidyn Ann 2021-08-22 11:44:03 -05:00
parent bcb92de53c
commit 10b63e4138
2 changed files with 8 additions and 6 deletions

View File

@ -309,10 +309,10 @@ void
ConversationView::GetWeights(float* horizChat, float* horizList,
float* vertChat, float* vertSend)
{
*horizChat = fHorizSplit->ItemWeight(0);
*horizList = fHorizSplit->ItemWeight(1);
*vertChat = fVertSplit->ItemWeight(0);
*vertSend = fVertSplit->ItemWeight(1);
*horizChat = fHorizSplit->ItemWeight((int32)0);
*horizList = fHorizSplit->ItemWeight((int32)1);
*vertChat = fVertSplit->ItemWeight((int32)0);
*vertSend = fVertSplit->ItemWeight((int32)1);
}

View File

@ -98,8 +98,10 @@ MainWindow::QuitRequested()
button_index = alert->Go();
}
AppPreferences::Get()->MainWindowListWeight = fSplitView->ItemWeight(0);
AppPreferences::Get()->MainWindowChatWeight = fSplitView->ItemWeight(1);
AppPreferences::Get()->MainWindowListWeight
= fSplitView->ItemWeight((int32)0);
AppPreferences::Get()->MainWindowChatWeight
= fSplitView->ItemWeight((int32)1);
AppPreferences::Get()->MainWindowRect = Frame();
if(button_index == 0) {