OSDN Git Service

#36181 更に更にrev942の修正漏れ。私のテスト環境においては、これで動画再生もできるようになった。ただしフルスクリーン再生以外はアラインがずれた動画になります。
authoryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Sun, 20 Mar 2016 15:32:57 +0000 (15:32 +0000)
committeryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Sun, 20 Mar 2016 15:32:57 +0000 (15:32 +0000)
git-svn-id: http://svn.osdn.jp/svnroot/dtxmania/trunk@944 16f42ceb-6dc6-49c8-ba94-f2d53467949d

DTXManiaプロジェクト/コード/ステージ/07.演奏/CAct演奏AVI.cs

index 1482b09..6b2071a 100644 (file)
@@ -50,10 +50,23 @@ namespace DTXMania
                                }\r
                                if (this.tx描画用 == null)\r
                                {\r
+#if TEST_Direct3D9Ex\r
+                                       if ( width % 32 != 0 )\r
+                                       {\r
+                                               width /= 32;\r
+                                               width++;\r
+                                               width *= 32;\r
+                                       }\r
+                                       this.tx描画用 = new CTexture(\r
+                                               CDTXMania.Instance.Device, width, height,\r
+                                               CDTXMania.Instance.GraphicsDeviceManager.CurrentSettings.BackBufferFormat,\r
+                                               Pool.Default, Usage.Dynamic );\r
+#else\r
                                        this.tx描画用 = new CTexture(\r
                                                CDTXMania.Instance.Device, width, height,\r
                                                CDTXMania.Instance.GraphicsDeviceManager.CurrentSettings.BackBufferFormat,\r
                                                Pool.Managed);\r
+#endif\r
                                }\r
                        }\r
                        catch (CTextureCreateFailedException e)\r
@@ -363,10 +376,10 @@ namespace DTXMania
                        if (!base.b活性化してない)\r
                        {\r
 #if TEST_Direct3D9Ex\r
-                               this.tx描画用 = new CTexture( CDTXMania.Instance.Device,\r
-                                       320,\r
-                                       355,\r
-                                       CDTXMania.Instance.GraphicsDeviceManager.CurrentSettings.BackBufferFormat, Pool.Default, Usage.Dynamic );\r
+                               this.PrepareProperSizeTexture(\r
+                                               ( bIsPreviewMovie ) ? 204 : SampleFramework.GameWindowSize.Width,\r
+                                               ( bIsPreviewMovie ) ? 269 : SampleFramework.GameWindowSize.Height\r
+                                               );\r
 #else\r
                                this.PrepareProperSizeTexture(\r
                                                (bIsPreviewMovie) ? 204 : SampleFramework.GameWindowSize.Width,\r