Skip to content

[BUG] Is Monitor Resolution Right On MacOS? #2163

@TwinklerG

Description

@TwinklerG

Read the FAQ first

  • I have checked the FAQ but the issue is not covered

Description

On My MacBook-Air 13.6', I use 2304x1296 for my external monitor and 1470x956 for my internal monitor, but as you know, my external monitor is a typical 4K monitor with resolution 3840x1920 but fastfetch does not show the right one, and my internal monitor's resolution is 2560x1664 actually.

I clone the repository and try to check it out.

FFDisplayResult* display = ffdsAppendDisplay(ds,
                (uint32_t)CGDisplayModeGetPixelWidth(mode),
                (uint32_t)CGDisplayModeGetPixelHeight(mode),
                refreshRate,
                (uint32_t)CGDisplayModeGetWidth(mode),
                (uint32_t)CGDisplayModeGetHeight(mode),
                preferredWidth,
                preferredHeight,
                preferredRefreshRate,
                (uint32_t)CGDisplayRotation(screen),
                &buffer,
                CGDisplayIsBuiltin(screen) ? FF_DISPLAY_TYPE_BUILTIN : FF_DISPLAY_TYPE_EXTERNAL,
                CGDisplayIsMain(screen),
                (uint64_t)screen,
                physicalWidth,
                physicalHeight,
                "CoreGraphics"
            );

I found that the preferredWidth and preferrredHeight is the right answer while scaledWidth and scaledHeight which are got by Apple Core Graphics Library is not the desired ones, but that problem is out of my range.

Version used

2.57.1

Bug prevalence

Always

Regression

Not sure

Installation

Package manager

Package manager

brew

Screenshots

Image

Configuration

System information

It does not matter?

Features built-in

threads
vulkan
imagemagick7
chafa
zlib
sqlite3
libzfs
System yyjson

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions