diff options
author | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-05-25 15:38:35 +0000 |
---|---|---|
committer | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-05-25 15:38:35 +0000 |
commit | 1387c764c8a0e33e8f58296d8544f2a03566c6a4 (patch) | |
tree | 70e4766c3fec1639fc6377e5d74292af0b2ae741 /VideoPreview/src/screens | |
parent | 87257c26b6392468e11835294fdcfd69b1fbec62 (diff) | |
download | usdx-1387c764c8a0e33e8f58296d8544f2a03566c6a4.tar.gz usdx-1387c764c8a0e33e8f58296d8544f2a03566c6a4.tar.xz usdx-1387c764c8a0e33e8f58296d8544f2a03566c6a4.zip |
modified aspect correction procedure.
added depth test for z-value handling.
fixed property height.
added DrawReflection procedure.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2420 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | VideoPreview/src/screens/UScreenSing.pas | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/VideoPreview/src/screens/UScreenSing.pas b/VideoPreview/src/screens/UScreenSing.pas index dc43881a..76eb385e 100644 --- a/VideoPreview/src/screens/UScreenSing.pas +++ b/VideoPreview/src/screens/UScreenSing.pas @@ -847,8 +847,24 @@ begin fCurrentVideo.GetFrame(VideoFrameTime); end; + // clear just once when in dual screen mode + if (ScreenAct = 1) then + begin + glClearColor(0, 0, 0, 0); + //glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT); + end; + + //***** for testing: + fCurrentVideo.SetScreenPosition(300, 10); + fCurrentVideo.Width := 200; + fCurrentVideo.Height := 150; + fCurrentVideo.ReflectionSpacing := 10; + //***** end testing + fCurrentVideo.SetScreen(ScreenAct); fCurrentVideo.Draw; + + fCurrentVideo.DrawReflection; //just for testing, should be deleted! end; // draw static menu (FG) |