Skip to content

Commit

Permalink
fix: screen resolution in full screen mode is incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Oct 1, 2020
1 parent 3cc231b commit 466e08b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Packages/UIEffectSnapshot/Scripts/UIEffectSnapshotUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,16 @@ public static void GetSamplingSize(UIEffectSnapshotRequest.DownSamplingRate rate
}
else
#endif
if (Screen.fullScreenMode == FullScreenMode.Windowed)
{
w = Screen.width;
h = Screen.height;
}
else
{
w = Screen.currentResolution.width;
h = Screen.currentResolution.height;
}

if (rate == UIEffectSnapshotRequest.DownSamplingRate.None)
return;
Expand Down

0 comments on commit 466e08b

Please sign in to comment.