From d06724ffe1fcbfb25ebab7e8f72a0b1014ec5bf3 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 26 Nov 2019 23:45:29 -0600 Subject: [PATCH] [nostalgia/core/studio] Fix tile sheet editor to correctly iterate over tiles --- src/nostalgia/core/studio/Pixel.qml | 2 +- src/nostalgia/core/studio/Tile.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/core/studio/Pixel.qml b/src/nostalgia/core/studio/Pixel.qml index 369e88cb..7051edba 100644 --- a/src/nostalgia/core/studio/Pixel.qml +++ b/src/nostalgia/core/studio/Pixel.qml @@ -4,7 +4,7 @@ import QtQuick 2.0 Rectangle { id: pixel; property int pixelNumber: index - color: sheetData.pixel(index) + color: sheetData.pixel(pixelNumber) width: parent.width / 8 height: parent.height / 8 border.color: '#717d7e' diff --git a/src/nostalgia/core/studio/Tile.qml b/src/nostalgia/core/studio/Tile.qml index 84423e63..c3cb5d53 100644 --- a/src/nostalgia/core/studio/Tile.qml +++ b/src/nostalgia/core/studio/Tile.qml @@ -18,7 +18,7 @@ Rectangle { Repeater { model: 64 Pixel { - pixelNumber: index + pixelNumber: index + 64 * tile.tileNumber } } }