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

Hotfix/retina screen #7

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Algiane
Copy link
Contributor

@Algiane Algiane commented Apr 15, 2022

This commit fix (at least partially) issue #6 :

  • default behaviour of Medit is unchanged;
  • the new -r command line option allow to enable hdpi retina screen support (we doble pixel sizes if needed by the openGL function).

I have tested:

  • picking;
  • clipping;
  • window redimensionning
  • splitview mode
  • animate mode
  • mesh saving using hardcopy.

Possible improvement: I haven't succeed to automatically compute the pixel density using current Medit dependencies (it is possible using cocoa or glfw libraries) so high pixel density is manually enabled with the -r option.

Known issue :
- passing a window from a retina screen to a non retina one (or invert) don't work (it would work with automatic computation of pixel density).

Algiane and others added 5 commits September 18, 2017 22:40
…oth ones when the mesh contains more vertices than normals (volume meshes): we were checking if the vertex index is lower or equal than the number of normals which is not true for volume mesh. The test is removed but I add an assert to check that the normal index at vertex is lower or equal to the number of normals.
…le pixel values which are passed to openGL functions. It allows to use Medit on recent Mac-OSX screen.
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.

1 participant