[nostalgia] Update for compatibility with Ox changes
This commit is contained in:
@@ -69,7 +69,7 @@ void TileSheetEditor::draw(core::Context*) noexcept {
|
||||
const auto wheel = io.MouseWheel;
|
||||
const auto wheelh = io.MouseWheelH;
|
||||
if (wheel != 0) {
|
||||
const auto zoomMod = ox::defines::OS == ox::defines::OS::Darwin ? io.KeySuper : io.KeyCtrl;
|
||||
const auto zoomMod = ox::defines::OS == ox::OS::Darwin ? io.KeySuper : io.KeyCtrl;
|
||||
const auto pixelSize = m_pixelsDrawer.pixelSize(paneSize);
|
||||
const ImVec2 sheetSize(pixelSize.x * static_cast<float>(m_img.columns) * TileWidth,
|
||||
pixelSize.y * static_cast<float>(m_img.rows) * TileHeight);
|
||||
|
||||
@@ -86,7 +86,7 @@ struct TileSheetClipboard {
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
ox::Error model(T *io, TileSheetClipboard *b) {
|
||||
constexpr ox::Error model(T *io, TileSheetClipboard *b) noexcept {
|
||||
io->template setTypeInfo<TileSheetClipboard>();
|
||||
oxReturnError(io->field("pixels", &b->m_pixels));
|
||||
oxReturnError(io->field("p1", &b->m_p1));
|
||||
|
||||
Reference in New Issue
Block a user