[glutils,nostalgia,studio] Fix Xcode build errors
This commit is contained in:
@ -60,7 +60,7 @@ void NewMenu::drawNewItemType(turbine::Context *ctx) noexcept {
|
||||
items[i] = im->name.c_str();
|
||||
++i;
|
||||
}
|
||||
ImGui::ListBox("Item Type", &m_selectedType, items.get(), m_types.size());
|
||||
ImGui::ListBox("Item Type", &m_selectedType, items.get(), static_cast<int>(m_types.size()));
|
||||
drawFirstPageButtons();
|
||||
ImGui::EndPopup();
|
||||
});
|
||||
|
@ -44,7 +44,8 @@ ox::Result<ox::String> saveFile(const ox::Vector<FDFilterItem> &filters) noexcep
|
||||
filterItems[i].spec = f.spec.data();
|
||||
++i;
|
||||
}
|
||||
return toResult(NFD::SaveDialog(path, filterItems.data(), filterItems.size()), path);
|
||||
const auto filterItemsCnt = static_cast<nfdfiltersize_t>(filterItems.size());
|
||||
return toResult(NFD::SaveDialog(path, filterItems.data(), filterItemsCnt), path);
|
||||
}
|
||||
|
||||
ox::Result<ox::String> chooseDirectory() noexcept {
|
||||
@ -53,4 +54,4 @@ ox::Result<ox::String> chooseDirectory() noexcept {
|
||||
return toResult(NFD::PickFolder(path), path);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user