From 10b63e4138d31f85f9cedcfec008aa1c3a39893a Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Sun, 22 Aug 2021 11:44:03 -0500 Subject: [PATCH] x86 fix for ItemWeight use --- application/views/ConversationView.cpp | 8 ++++---- application/windows/MainWindow.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/application/views/ConversationView.cpp b/application/views/ConversationView.cpp index 4c5996f..a5b1106 100644 --- a/application/views/ConversationView.cpp +++ b/application/views/ConversationView.cpp @@ -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); } diff --git a/application/windows/MainWindow.cpp b/application/windows/MainWindow.cpp index 35294bf..b5dfb5e 100644 --- a/application/windows/MainWindow.cpp +++ b/application/windows/MainWindow.cpp @@ -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) {