GnomeScreensaver: aspect ratio is for entire virtual screen, not just one monitor

This commit is contained in:
Josh Holtrop committed 2010-11-27 17:04:35 -05:00
1 parent 27e302f126
commit 6cd00909e0
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -29,7 +29,8 @@ bool Spin::configure (GnomeScreensaver & gs)
{
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(60.0, gs.getAspectRatio(), 0.01, 1000.0);
gluPerspective(60.0, gs.getAspectRatio() / gs.getNumMonitors(),
0.01, 1000.0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();