Browse Source

Backends: OSX: fixed NSAppKitVersion version limit for setWantsBestResolutionOpenGLSurface usage. (#7814)

pull/7857/head
chenqiudu 4 months ago
committed by ocornut
parent
commit
aa0f6b37bd
  1. 2
      backends/imgui_impl_osx.mm
  2. 2
      docs/CHANGELOG.txt

2
backends/imgui_impl_osx.mm

@ -919,7 +919,7 @@ static void ImGui_ImplOSX_CreateWindow(ImGuiViewport* viewport)
window.opaque = YES;
KeyEventResponder* view = [[KeyEventResponder alloc] initWithFrame:rect];
if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6)
if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6 && ceil(NSAppKitVersionNumber) < NSAppKitVersionNumber10_15)
[view setWantsBestResolutionOpenGLSurface:YES];
window.contentView = view;

2
docs/CHANGELOG.txt

@ -167,6 +167,8 @@ Other changes:
Docking+Viewports Branch:
- Backends: OSX: Fixed NSAppKitVersion version limit for setWantsBestResolutionOpenGLSurface
usage. (#7814) [@YGXXD]
- Backends: SDL3: Fixed a bug preventing ImGuiViewportFlags_NoFocusOnAppearing support from
working (Windows only).

Loading…
Cancel
Save