mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-03-18 09:06:07 +08:00
ggwave-gui : minor fix
This commit is contained in:
@@ -411,6 +411,11 @@ void renderMain() {
|
|||||||
|
|
||||||
const float tMessageFlyIn = 0.3f;
|
const float tMessageFlyIn = 0.3f;
|
||||||
|
|
||||||
|
// we need this because we push messages in the next loop
|
||||||
|
if (messageHistory.capacity() == messageHistory.size()) {
|
||||||
|
messageHistory.reserve(messageHistory.size() + 16);
|
||||||
|
}
|
||||||
|
|
||||||
for (int i = 0; i < (int) messageHistory.size(); ++i) {
|
for (int i = 0; i < (int) messageHistory.size(); ++i) {
|
||||||
ImGui::PushID(i);
|
ImGui::PushID(i);
|
||||||
const auto & message = messageHistory[i];
|
const auto & message = messageHistory[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user