Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Examples don't appear to support HiDPI screens #165

Open
krolaw opened this issue Oct 24, 2015 · 1 comment
Open

Examples don't appear to support HiDPI screens #165

krolaw opened this issue Oct 24, 2015 · 1 comment

Comments

@krolaw
Copy link

krolaw commented Oct 24, 2015

Ubuntu 15 on a Lenovo Yoga 13 Pro

Text looks tiny. I'm not sure if it's an OS limitation, but other apps such as Chrome look great.

Thanks.

@ben-clayton
Copy link
Contributor

Hi @krolaw. GXUI does support different density displays, but it relies on GLFW to report the correct screen density. It sounds like there might be an issue with GLFW and your particular OS / driver.

However, all of the samples have a -scaling flag that multiplies the GLFW reported density with the value provided. For example:
go run $GOPATH/src/github.com/google/gxui/samples/tree/main.go -scaling=2
Should display at a more sensible resolution for your display.

Cheers,
Ben

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

No branches or pull requests

2 participants