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

Grib plugin ignores app-wide screen size settings #892

Closed
nohal opened this issue Sep 18, 2017 · 0 comments
Closed

Grib plugin ignores app-wide screen size settings #892

nohal opened this issue Sep 18, 2017 · 0 comments

Comments

@nohal
Copy link
Collaborator

nohal commented Sep 18, 2017

if(wxGetDisplaySize().x > 0){
#ifdef __WXGTK__
GdkScreen *screen = gdk_screen_get_default();
m_pixelMM = (double)gdk_screen_get_monitor_width_mm(screen, 0) / wxGetDisplaySize().x;
#else
m_pixelMM = (double)wxGetDisplaySizeMM().x / wxGetDisplaySize().x;
#endif
m_pixelMM = wxMax(.02, m_pixelMM); // protect against bad data
}
else
m_pixelMM = 0.27; // semi-standard number...

Should be replaced with logic following the screen width setting in the core application preferences.

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

No branches or pull requests

1 participant