[nostalgia/core/studio] Fix issue with pixel idx lookup in draw command

This commit is contained in:
2022-02-14 01:38:56 -06:00
parent 60e259ca34
commit 99cc853b94
4 changed files with 28 additions and 37 deletions
@@ -17,6 +17,25 @@
namespace nostalgia::core {
enum class TileSheetTool: int {
Select,
Draw,
Fill,
};
[[nodiscard]]
constexpr auto toString(TileSheetTool t) noexcept {
switch (t) {
case TileSheetTool::Select:
return "Select";
case TileSheetTool::Draw:
return "Draw";
case TileSheetTool::Fill:
return "Fill";
}
return "";
}
class TileSheetEditor {
private: