Achieved resolution independence.

src/core.c:75
  I know that is the wrong way to implement the C++ std::min function,
  but it works.