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

Issues with minimal-fltk example #163

Closed
2 tasks done
parasyte opened this issue May 8, 2021 · 1 comment · Fixed by #169
Closed
2 tasks done

Issues with minimal-fltk example #163

parasyte opened this issue May 8, 2021 · 1 comment · Fixed by #169
Labels
bug Something isn't working examples A bug or improvement for an example

Comments

@parasyte
Copy link
Owner

parasyte commented May 8, 2021

@parasyte parasyte added bug Something isn't working examples A bug or improvement for an example labels May 8, 2021
@MoAlyousef
Copy link
Contributor

Hi
I've added Window::pixels_per_unit in the latest release of fltk-rs (1.0.14). On MacOS, this tries calling [NSWindow backingScaleFactor], which might fail in the absence of an info.plist with NSHighResolutionCapable, in that case it assumes a scale factor of 2 (retina), if NSHighResolutionCapable is set in an info.plist, then the factor returned by backingScaleFactor is used.

parasyte added a commit that referenced this issue May 29, 2021
- Fixes #163
- Reimplements window resize
  - Still has problems on macOS; Resizing with the drag handle blocks the main loop. See:
    - glfw/glfw#1251
    - rust-windowing/winit#219
@parasyte parasyte mentioned this issue May 29, 2021
parasyte added a commit that referenced this issue May 29, 2021
- Fixes #163
- Reimplements window resize
  - Still has problems on macOS; Resizing with the drag handle blocks the main loop. See:
    - glfw/glfw#1251
    - rust-windowing/winit#219
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working examples A bug or improvement for an example
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants