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