Commit 37afb8e8 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix high resolution

parent b9dc0fc8
Pipeline #5150 failed with stages
in 60 minutes and 1 second
......@@ -23,7 +23,7 @@ public class BackGroundPic : Servant
public override void applyShowArrangement()
{
UIRoot root = Program.ui_back_ground_2d.GetComponent<UIRoot>();
float s = root.activeHeight / Screen.height;
float s = (float)root.activeHeight / Screen.height;
var tex = backGround.GetComponent<UITexture>().mainTexture;
float ss = (float)tex.height / (float)tex.width;
int width = (int)(Screen.width * s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment