OSDN Git Service

#36176 旧プレビュー画像かどうかの判定条件を、特定値との等値から以下に変更。
authoryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Sun, 20 Mar 2016 04:11:00 +0000 (04:11 +0000)
committeryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Sun, 20 Mar 2016 04:11:00 +0000 (04:11 +0000)
git-svn-id: http://svn.osdn.jp/svnroot/dtxmania/trunk@939 16f42ceb-6dc6-49c8-ba94-f2d53467949d

DTXManiaプロジェクト/コード/全体/CPreviewMagnifier.cs

index 80c0658..82b5bcf 100644 (file)
@@ -72,9 +72,9 @@ namespace DTXMania
                        this.height = height_org;\r
                        this.magX = magX_org * width_fhd_set / width_org;\r
                        this.magY = magY_org * height_fhd_set / height_org;\r
-                       if (bIsPreview && width_org == 204 && height_org == 269)\r
+                       if (bIsPreview && width_org <= width_vga_set && height_org <= height_vga_set )\r
                        {\r
-                               this.magX = magX_org * width_fhd_set / width_org * ( 204f / 269 );\r
+                               this.magX = magX_org * width_fhd_set / width_org * ( Convert.ToSingle( width_vga_set ) / height_vga_set );\r
                        }\r
                        return;\r
 \r