Read the FAQ first
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
Configuration
System information
Features built-in
threads
vulkan
imagemagick7
chafa
zlib
sqlite3
libzfs
System yyjson
Read the FAQ first
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.
I found that the
preferredWidthandpreferrredHeightis the right answer whilescaledWidthandscaledHeightwhich 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
Configuration
System information
Features built-in