Commit df8fd34b authored by 神楽坂玲奈's avatar 神楽坂玲奈 Committed by mercury233

fix high resolution

parent 9b23705f
...@@ -23,7 +23,7 @@ public class BackGroundPic : Servant ...@@ -23,7 +23,7 @@ public class BackGroundPic : Servant
public override void applyShowArrangement() public override void applyShowArrangement()
{ {
UIRoot root = Program.ui_back_ground_2d.GetComponent<UIRoot>(); 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; var tex = backGround.GetComponent<UITexture>().mainTexture;
float ss = (float)tex.height / (float)tex.width; float ss = (float)tex.height / (float)tex.width;
int width = (int)(Screen.width * s); 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