[fusion-commits] 3D plugin: Changes to 'master' (fe8598b8f8fb90f445ee95c9cc0aa0aec6afc09d)

roico at server.beryl-project.org roico at server.beryl-project.org
Tue Jul 3 18:04:14 CEST 2007


New commits:
commit fe8598b8f8fb90f445ee95c9cc0aa0aec6afc09d
Author: Roi Cohen <roico at roico-desktop.(none)>
Date:   Tue Jul 3 19:04:14 2007 +0300

    fix windows in 2 different viewports - needs the clip planes patch


 3d.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)


Modified: fusion/plugins/3d/3d.c
===================================================================
--- fusion/plugins/3d/3d.c
+++ fusion/plugins/3d/3d.c
@@ -997,7 +997,12 @@ static Bool tdInitScreen(CompPlugin * p, CompScreen * s)
 	tds->currentScreenNum = s->nOutputDev;
 	tds->currentDifferentResolutions = differentResolutions(s);
 
-	tds->xMove = 0.0f;
+	if (tds->currentViewportNum > 2
+	    && (s->nOutputDev == 1))
+		tds->xMove =
+			1.0f / (tan (PI * (tds->currentViewportNum - 2.0f) / (2.0f * tds->currentViewportNum)));
+	else
+		tds->xMove = 0.0f;
 
 	tds->lastInViewportList = NULL;
 	tds->lastInViewportListSize = 0;


More information about the commits mailing list