From 0017ec10aa9ba57797a4b3e963ccb5d2ce376da2 Mon Sep 17 00:00:00 2001 From: brunzelchen Date: Tue, 15 Jun 2010 04:30:20 +0000 Subject: fixed x-position of glScissor test in UVideo.Draw and UVideo.DrawReflection (video was visible on the first screen only) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2527 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/media/UVideo.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/media') diff --git a/src/media/UVideo.pas b/src/media/UVideo.pas index 85655e8e..add7bdc8 100644 --- a/src/media/UVideo.pas +++ b/src/media/UVideo.pas @@ -1075,7 +1075,7 @@ begin HeightFactor := ScreenH / RenderH; glScissor( - round(fPosX*WidthFactor + HeightFactor*(fScreen-1)), + round(fPosX*WidthFactor + (ScreenW/Screens)*(fScreen-1)), round((RenderH-fPosY-fHeight)*HeightFactor), round(fWidth*WidthFactor), round(fHeight*HeightFactor) @@ -1150,7 +1150,7 @@ begin HeightFactor := ScreenH / RenderH; glScissor( - round(fPosX*WidthFactor + HeightFactor*(fScreen-1)), + round(fPosX*WidthFactor + (ScreenW/Screens)*(fScreen-1)), round((RenderH-fPosY-fHeight-fReflectionSpacing-fHeight*ReflectionH)*HeightFactor), round(fWidth*WidthFactor), round(fHeight*HeightFactor*ReflectionH) -- cgit v1.2.3