diff --git a/docs/changelog.rst b/docs/changelog.rst index f80970236..14c22b9c1 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -56,7 +56,7 @@ Detailed list of changes - macOS: Fix :code:`kitten @ select-window` leaving the keyboard in a partially functional state (:iss:`7074`) -- Graphics protocol: Improve display of images using unicode placeholders or +- Graphics protocol: Improve display of images using Unicode placeholders or row/column boxes by resizing them using linear instead of nearest neighbor interpolation on the GPU (:iss:`7070`) diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index 9fe090f49..f525113e1 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -3051,8 +3051,8 @@ GLFWAPI void glfwCocoaSetWindowChrome(GLFWwindow *w, unsigned int color, bool us NSColor *background = nil; NSAppearance *appearance = nil; bool titlebar_transparent = false; - NSWindowStyleMask current_style_mask = [window->ns.object styleMask]; - bool in_fullscreen = ((current_style_mask & NSWindowStyleMaskFullScreen) != 0) || window->ns.in_traditional_fullscreen; + const NSWindowStyleMask current_style_mask = [window->ns.object styleMask]; + const bool in_fullscreen = ((current_style_mask & NSWindowStyleMaskFullScreen) != 0) || window->ns.in_traditional_fullscreen; NSAppearance *light_appearance = is_transparent ? [NSAppearance appearanceNamed:NSAppearanceNameVibrantLight] : [NSAppearance appearanceNamed:NSAppearanceNameAqua]; NSAppearance *dark_appearance = is_transparent ? [NSAppearance appearanceNamed:NSAppearanceNameVibrantDark] : [NSAppearance appearanceNamed:NSAppearanceNameDarkAqua]; if (use_system_color || background_opacity < 1.0) {