Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow fractional sizes in minimap #271

Merged
merged 1 commit into from
Feb 16, 2015
Merged

allow fractional sizes in minimap #271

merged 1 commit into from
Feb 16, 2015

Conversation

jacekkopecky
Copy link
Contributor

Hi,
I have a "retina" screen mac and wanted to make use of the smaller real pixels; currently I have 1 real pixel interline, 3 real pixels char height, and 2 real pixels char width. I also experimented with smaller sizes, but my poor eyesight disagreed.
Anyway, to do that, I needed the character sizes to be fractional – with a devicePixelRatio of 2, I want to use increments of .5. Hence my patch, and hence this pull request.

This is especially useful on retina screens if you want to use the
smaller pixels.
@abe33
Copy link
Contributor

abe33 commented Feb 16, 2015

👍 Thanks for that, I wasn't sure at first if a float would gives good results but I should have thought of HiDPI displays.

abe33 added a commit that referenced this pull request Feb 16, 2015
🐛 Fix size settings not allowing float numbers
@abe33 abe33 merged commit 9a9df90 into atom-minimap:master Feb 16, 2015
@jacekkopecky jacekkopecky deleted the retina-fractional-sizes branch February 16, 2015 23:03
@jacekkopecky
Copy link
Contributor Author

Hi,
I haven't tried smaller values; I see that devicePixelRatio is set to
maximum of three, so to allow working with "real" pixels, the minimum
should be at most 0.3333. Again, haven't tried it.

Thanks for the prompt merge, that's awesome! 8-)
Jack

On 16 February 2015 at 22:49, Cédric Néhémie notifications@github.com
wrote:

Merged #271 #271.


Reply to this email directly or view it on GitHub
#271 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants