X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=init.cpp;h=df72832e7b63985b50deb266db289d2ade015ef5;hp=aca85b9d404f152b8971230612c696dbc747a11e;hb=85f9719bf3519b1f1942738d11601584f5d38725;hpb=a80b859d6c8bb9ed1e7aa547d4a9972f1a041347 diff --git a/init.cpp b/init.cpp index aca85b9..df72832 100644 --- a/init.cpp +++ b/init.cpp @@ -7,6 +7,8 @@ #include "init.h" #include "util.h" +using namespace std; + bool movit_initialized = false; MovitDebugLevel movit_debug_level = MOVIT_DEBUG_ON; float movit_texel_subpixel_precision; @@ -16,7 +18,7 @@ int movit_num_wrongly_rounded; // The rules for objects with nontrivial constructors in static scope // are somewhat convoluted, and easy to mess up. We simply have a // pointer instead (and never care to clean it up). -std::string *movit_data_directory = NULL; +string *movit_data_directory = NULL; namespace { @@ -114,7 +116,7 @@ void measure_texel_subpixel_precision() float biggest_jump = 0.0f; for (unsigned i = 1; i < width; ++i) { assert(out_data[i] >= out_data[i - 1]); - biggest_jump = std::max(biggest_jump, out_data[i] - out_data[i - 1]); + biggest_jump = max(biggest_jump, out_data[i] - out_data[i - 1]); } movit_texel_subpixel_precision = biggest_jump; @@ -275,13 +277,13 @@ void check_extensions() } // namespace -void init_movit(const std::string& data_directory, MovitDebugLevel debug_level) +void init_movit(const string& data_directory, MovitDebugLevel debug_level) { if (movit_initialized) { return; } - movit_data_directory = new std::string(data_directory); + movit_data_directory = new string(data_directory); movit_debug_level = debug_level; glewInit();