ISCDtoolbox / Medit

23 stars 13 forks source link

Issue with retina HDPI screen (OSX) #6

Open Algiane opened 2 years ago

Algiane commented 2 years ago

Hi the ISCD team,

On retina HDPI screen the pixel density is twice the resolution, leading to issues with openGL functions that takes pixels dimensions as arguments (refs: this discussion or this official doc of apple).

In Medit, it creates multiple issues :

  1. Mesh is displayed using a quarter of the window size. Rescaling the window allows to solve the issue (temporary). framebuffer-vs-display-issue
  2. Clicking in a given area of the window picks entities in a different region (wrong x,y coordinates). picking-issue
  3. Using windows linking (Alt-c / Alt-l) and zooming unzooming creates different sizes between mesh dislaying. link-and-zoom-issue

I will try to propose an admissible fix for this (but I am not expert in graphical stuff). Best Regards,

Algiane