Skip to content

glfw viewer - high dpi: handling both width and height.#2117

Merged
alecjacobson merged 1 commit intolibigl:mainfrom
fghoussen:highdpi
Feb 4, 2023
Merged

glfw viewer - high dpi: handling both width and height.#2117
alecjacobson merged 1 commit intolibigl:mainfrom
fghoussen:highdpi

Conversation

@fghoussen
Copy link
Copy Markdown
Contributor

Fixes # .

From what I know of OpenGL, both width and height must be handled to resize window to frame.
Not 100% sure!...I PR that as a proposal: I let you decide if it's a good move

Checklist

make all test runs OK at my side (debian)

  • All changes meet libigl style-guidelines.
  • Adds new .cpp file.
  • Adds corresponding unit test.
  • This is a minor change.

@alecjacobson
Copy link
Copy Markdown
Contributor

Is this fixing a known issue or something that theoretically could happen? Wouldn't that mean that someone's display has a different resolution in height vs width?

@fghoussen
Copy link
Copy Markdown
Contributor Author

I have not the HW to test this, so, I can not say this has been tested.
But this appears in many OpenGL snippets, tutorials, stackoverflow questions I've seen so I reported it here.

@alecjacobson alecjacobson merged commit 610a495 into libigl:main Feb 4, 2023
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.

2 participants