Skip to content

Commit

Permalink
fix: macOSのHiDPI環境で描画が小さくなる不具合を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
EbiseLutica committed Nov 29, 2024
1 parent 1f03667 commit 65544d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public unsafe void Draw(Texture2D texture, Node node, Color? color = null, Vecto
* Matrix4x4.CreateTranslation(new Vector3((pivot ?? Vector.Zero).ToNumerics(), 0))
* node.ModelMatrix;
var projectionMatrix =
Matrix4x4.CreateOrthographicOffCenter(0, _window.ActualWidth, _window.ActualHeight, 0, 0.1f, 100f);
Matrix4x4.CreateOrthographicOffCenter(0, _window.ActualWidth / _window.PixelRatio, _window.ActualHeight / _window.PixelRatio, 0, 0.1f, 100f);
var c = color ?? Color.White;

gl.Enable(GLEnum.Blend);
Expand Down

0 comments on commit 65544d9

Please sign in to comment.