mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 09:06:43 +00:00
minor cleanup
This commit is contained in:
parent
d364fd8561
commit
d61c12ccfc
1 changed files with 4 additions and 4 deletions
|
@ -291,11 +291,11 @@ QStringList GraphicsPage::getAvailableResolutions(Ogre::RenderSystem *renderer)
|
||||||
|
|
||||||
QRect GraphicsPage::getMaximumResolution()
|
QRect GraphicsPage::getMaximumResolution()
|
||||||
{
|
{
|
||||||
QRect max, res;
|
QRect max;
|
||||||
int i, screens = QApplication::desktop()->screenCount();
|
int screens = QApplication::desktop()->screenCount();
|
||||||
for (i = 0; i < screens; i++)
|
for (int i = 0; i < screens; ++i)
|
||||||
{
|
{
|
||||||
res = QApplication::desktop()->screenGeometry(i);
|
QRect res = QApplication::desktop()->screenGeometry(i);
|
||||||
if (res.width() > max.width())
|
if (res.width() > max.width())
|
||||||
max.setWidth(res.width());
|
max.setWidth(res.width());
|
||||||
if (res.height() > max.height())
|
if (res.height() > max.height())
|
||||||
|
|
Loading…
Reference in a new issue