Skip to content

Commit

Permalink
Merge pull request #127 from lTyl/blurry-text-when-pixel-ratio-less-t…
Browse files Browse the repository at this point in the history
…han-one

Fix: Blurry text when `devicePixelRatio` is less than one
  • Loading branch information
davidkircos committed Oct 11, 2022
2 parents ae4f439 + 1c1b6d9 commit 4871449
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ yarn-error.log*
/playwright/.cache/

venv/*
*.pyc
*.pyc
.idea
2 changes: 1 addition & 1 deletion src/core/gridGL/QuadraticGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default function QuadraticGrid() {
// resizeTo: window,
resolution:
// Always use 2 instead of 1. Better resolution.
window.devicePixelRatio === 1.0 ? 2 : window.devicePixelRatio,
window.devicePixelRatio <= 1.0 ? 2 : window.devicePixelRatio,
backgroundColor: 0xffffff,
antialias: true,
autoDensity: true,
Expand Down

0 comments on commit 4871449

Please sign in to comment.