[nostalgia] Update for compatibility with Ox changes

This commit is contained in:
2022-02-12 14:32:10 -06:00
parent 610dc2ceca
commit 34221f086c
4 changed files with 16 additions and 12 deletions
@@ -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);