[nostalgia/scene] Make Scene::setupDisplay const
This commit is contained in:
parent
7437487340
commit
9ba13b17b1
@ -15,7 +15,7 @@ class Scene {
|
|||||||
public:
|
public:
|
||||||
explicit Scene(const SceneStatic &sceneStatic) noexcept;
|
explicit Scene(const SceneStatic &sceneStatic) noexcept;
|
||||||
|
|
||||||
ox::Error setupDisplay(core::Context *ctx) noexcept;
|
ox::Error setupDisplay(core::Context *ctx) const noexcept;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ Scene::Scene(const SceneStatic &sceneStatic) noexcept:
|
|||||||
m_sceneStatic(sceneStatic) {
|
m_sceneStatic(sceneStatic) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ox::Error Scene::setupDisplay(core::Context *ctx) noexcept {
|
ox::Error Scene::setupDisplay(core::Context *ctx) const noexcept {
|
||||||
if (m_sceneStatic.palettes.empty()) {
|
if (m_sceneStatic.palettes.empty()) {
|
||||||
return OxError(1, "Scene has no palettes");
|
return OxError(1, "Scene has no palettes");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user