From a4f4422ae85c813fa8ae6f491654f5b80ca5b7af Mon Sep 17 00:00:00 2001 From: 0auBSQ <58159635+0auBSQ@users.noreply.github.com> Date: Mon, 27 Feb 2023 05:43:55 +0900 Subject: [PATCH] Fix float operation --- TJAPlayer3/Stages/15.OpenEncyclopedia/COpenEncyclopedia.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TJAPlayer3/Stages/15.OpenEncyclopedia/COpenEncyclopedia.cs b/TJAPlayer3/Stages/15.OpenEncyclopedia/COpenEncyclopedia.cs index 9c9e2194..a04ed942 100644 --- a/TJAPlayer3/Stages/15.OpenEncyclopedia/COpenEncyclopedia.cs +++ b/TJAPlayer3/Stages/15.OpenEncyclopedia/COpenEncyclopedia.cs @@ -99,8 +99,8 @@ namespace TJAPlayer3 _page.Item2?.t2D中心基準描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.OpenEncyclopedia_Context_Item2[0], TJAPlayer3.Skin.OpenEncyclopedia_Context_Item2[1]); if (_page.Item3 != null) { - _page.Item3.vc拡大縮小倍率.X = TJAPlayer3.Skin.Resolution[0] / (2 * _page.Item3.szテクスチャサイズ.Width); - _page.Item3.vc拡大縮小倍率.Y = TJAPlayer3.Skin.Resolution[1] / (2 * _page.Item3.szテクスチャサイズ.Height); + _page.Item3.vc拡大縮小倍率.X = TJAPlayer3.Skin.Resolution[0] / (2f * _page.Item3.szテクスチャサイズ.Width); + _page.Item3.vc拡大縮小倍率.Y = TJAPlayer3.Skin.Resolution[1] / (2f * _page.Item3.szテクスチャサイズ.Height); _page.Item3.t2D描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.OpenEncyclopedia_Context_Item3[0], TJAPlayer3.Skin.OpenEncyclopedia_Context_Item3[1]); } _controler.PageText?.t2D下中央基準描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.OpenEncyclopedia_Context_PageText[0], TJAPlayer3.Skin.OpenEncyclopedia_Context_PageText[1]);