/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
indexer/scales_patch.hpp
28 строк
535 B
Constantin Shalnev
The MAPS.ME.Designer tool for DRAPE 2.0
04 июл 2017, 11:26
04 июл 2017, 11:26
93035f2
Код
Авторство
О чём код?
#pragma once #include "scales.hpp" #ifdef BUILD_DESIGNER enum { kPatchScaleShift = 3 }; inline uint32_t PatchMinDrawableScale(uint32_t s) { return (s < kPatchScaleShift ? 0 : s - kPatchScaleShift); } inline uint32_t PatchScaleBound(uint32_t s) { s += kPatchScaleShift; if (s > scales::GetUpperScale()) s = scales::GetUpperScale(); return s; } #else // BUILD_DESIGNER inline uint32_t PatchMinDrawableScale(uint32_t s) { return s; } inline uint32_t PatchScaleBound(uint32_t s) { return s; } #endif // BUILD_DESIGNER