Refactor GfxContext references to use gfx::GfxContext for consistency
This commit is contained in:
@@ -18,7 +18,7 @@ namespace editor {
|
||||
/**
|
||||
* @brief Popup window to edit Tile16 data
|
||||
*/
|
||||
class Tile16Editor : public GfxContext, public SharedRom {
|
||||
class Tile16Editor : public gfx::GfxContext, public SharedRom {
|
||||
public:
|
||||
absl::Status InitBlockset(const gfx::Bitmap& tile16_blockset_bmp,
|
||||
const gfx::Bitmap& current_gfx_bmp,
|
||||
|
||||
@@ -349,7 +349,7 @@ absl::Status LoadAllPalettes(const std::vector<uint8_t> &rom_data,
|
||||
return absl::OkStatus();
|
||||
}
|
||||
|
||||
} // namespace gfx
|
||||
std::unordered_map<uint8_t, gfx::Paletteset> GfxContext::palettesets_;
|
||||
|
||||
} // namespace gfx
|
||||
} // namespace yaze
|
||||
|
||||
@@ -404,7 +404,6 @@ struct Paletteset {
|
||||
gfx::SnesPalette composite; /**< The composite palette. */
|
||||
};
|
||||
|
||||
} // namespace gfx
|
||||
/**
|
||||
* @brief Shared graphical context across editors.
|
||||
*/
|
||||
@@ -414,8 +413,7 @@ protected:
|
||||
static std::unordered_map<uint8_t, gfx::Paletteset> palettesets_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
} // namespace gfx
|
||||
} // namespace yaze
|
||||
|
||||
#endif // YAZE_APP_GFX_PALETTE_H
|
||||
|
||||
@@ -57,7 +57,7 @@ constexpr int OverworldCustomTileGFXGroupEnabled = 0x140148;
|
||||
/**
|
||||
* @brief Represents a single Overworld map screen.
|
||||
*/
|
||||
class OverworldMap : public GfxContext {
|
||||
class OverworldMap : public gfx::GfxContext {
|
||||
public:
|
||||
OverworldMap() = default;
|
||||
OverworldMap(int index, Rom& rom, bool load_custom_data = false);
|
||||
|
||||
Reference in New Issue
Block a user