1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-23 19:39:42 +00:00

Fix boost deprecation warning

This commit is contained in:
AnyOldName3 2019-02-13 14:49:36 +00:00
parent 4a9abf1c1b
commit 89d4d3be08

View file

@ -8,7 +8,7 @@
#include <MyGUI_TabControl.h>
#include <boost/algorithm/string.hpp>
#include <boost/math/common_factor.hpp>
#include <boost/integer/common_factor.hpp>
#include <SDL_video.h>
@ -58,7 +58,7 @@ namespace
std::string getAspect (int x, int y)
{
int gcd = boost::math::gcd (x, y);
int gcd = boost::integer::gcd (x, y);
int xaspect = x / gcd;
int yaspect = y / gcd;
// special case: 8 : 5 is usually referred to as 16:10