mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-15 23:36:56 -04:00
Use new common_factor header in the launcher, too
This commit is contained in:
parent
89d4d3be08
commit
c68ccbc6b6
@ -1,6 +1,6 @@
|
|||||||
#include "graphicspage.hpp"
|
#include "graphicspage.hpp"
|
||||||
|
|
||||||
#include <boost/math/common_factor.hpp>
|
#include <boost/integer/common_factor.hpp>
|
||||||
#include <csignal>
|
#include <csignal>
|
||||||
#include <QDesktopWidget>
|
#include <QDesktopWidget>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
QString getAspect(int x, int y)
|
QString getAspect(int x, int y)
|
||||||
{
|
{
|
||||||
int gcd = boost::math::gcd (x, y);
|
int gcd = boost::integer::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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user