diff options
author | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-06-15 04:30:20 +0000 |
---|---|---|
committer | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-06-15 04:30:20 +0000 |
commit | 0017ec10aa9ba57797a4b3e963ccb5d2ce376da2 (patch) | |
tree | 2ab2604f690a0be0895cf19fabe4888793bb8633 | |
parent | 761140e1de428669e27f5d3d1db8b42ae44441b6 (diff) | |
download | usdx-0017ec10aa9ba57797a4b3e963ccb5d2ce376da2.tar.gz usdx-0017ec10aa9ba57797a4b3e963ccb5d2ce376da2.tar.xz usdx-0017ec10aa9ba57797a4b3e963ccb5d2ce376da2.zip |
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
Diffstat (limited to '')
-rw-r--r-- | src/media/UVideo.pas | 4 |
1 files changed, 2 insertions, 2 deletions
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) |