Skip to content

Commit

Permalink
Fixed|libgui: Use HiDPI images even if UI is scaled down
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 11, 2016
1 parent 9b3d342 commit 8d75289
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -121,10 +121,10 @@ end

def dpiScaledImagePath(path)
# Returns a version of 'path' where "@2x" is appended to the end
# if DPI_FACTOR is 2.
# if DPI_FACTOR is 2 (approximately).
import DisplayMode
p = Text(path)
if DisplayMode.DPI_FACTOR == 2
if DisplayMode.DPI_FACTOR > 1.5
return (p.fileNameAndPathWithoutExtension() + "@2x" +
p.fileNameExtension())
end
Expand Down

0 comments on commit 8d75289

Please sign in to comment.