rename Mode::Static => Mode::Still

This commit is contained in:
Konstantin Käfer
2015-04-17 17:55:24 +02:00
parent 7827d4954c
commit 71d127220b
6 changed files with 9 additions and 9 deletions

View File

@@ -247,15 +247,15 @@ void Map::resume() {
void Map::renderStill(StillImageCallback fn) {
assert(Environment::currentlyOn(ThreadType::Main));
if (mode != Mode::Static) {
throw util::Exception("Map is not in static render mode");
if (mode != Mode::Still) {
throw util::Exception("Map is not in still image render mode");
}
if (callback) {
throw util::Exception("Map is currently rendering an image");
}
assert(mode == Mode::Static);
assert(mode == Mode::Still);
callback = std::move(fn);
@@ -287,7 +287,7 @@ void Map::run() {
uv_run(env->loop, UV_RUN_DEFAULT);
checkForPause();
}
} else if (mode == Mode::Static) {
} else if (mode == Mode::Still) {
terminating = false;
while (!terminating) {
uv_run(env->loop, UV_RUN_DEFAULT);