|
|
|
@ -3,17 +3,14 @@
|
|
|
|
|
#include <MyGUI_ScrollBar.h>
|
|
|
|
|
#include <MyGUI_Window.h>
|
|
|
|
|
#include <MyGUI_ComboBox.h>
|
|
|
|
|
#include <MyGUI_ListBox.h>
|
|
|
|
|
#include <MyGUI_ScrollView.h>
|
|
|
|
|
#include <MyGUI_Gui.h>
|
|
|
|
|
#include <MyGUI_TabControl.h>
|
|
|
|
|
|
|
|
|
|
#include <boost/algorithm/string.hpp>
|
|
|
|
|
#include <boost/math/common_factor_rt.hpp>
|
|
|
|
|
|
|
|
|
|
#include <SDL_video.h>
|
|
|
|
|
|
|
|
|
|
#include <components/misc/stringops.hpp>
|
|
|
|
|
#include <components/widgets/sharedstatebutton.hpp>
|
|
|
|
|
#include <components/settings/settings.hpp>
|
|
|
|
|
|
|
|
|
@ -57,7 +54,7 @@ namespace
|
|
|
|
|
|
|
|
|
|
std::string getAspect (int x, int y)
|
|
|
|
|
{
|
|
|
|
|
int gcd = boost::math::gcd (x, y);
|
|
|
|
|
int gcd = std::__gcd (x, y);
|
|
|
|
|
int xaspect = x / gcd;
|
|
|
|
|
int yaspect = y / gcd;
|
|
|
|
|
// special case: 8 : 5 is usually referred to as 16:10
|
|
|
|
|