Closed Bug 196134 Opened 22 years ago Closed 16 years ago

Remove bogus sniffing of screen resolution on Mac

Categories

(Core Graveyard :: GFX: Mac, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sfraser_bugs, Unassigned)

References

()

Details

This code in nsDeviceContextMac: #ifdef XP_MACOSX else { short hppi, vppi; ::ScreenRes(&hppi, &vppi); mPixelsPerInch = hppi * 1.17f; } #endif is bogus. ScreenRes() will always return 72dpi. We should just remove it, and let the prefs control screen resolution.
Ouch. Does MacOSX really have no way to get the resolution for the current display device ?!
There are APIs to get the screen size in pixels, but how is the OS to know the physical size of the monitor?
Dup of bug 188220? Code is now off.
Assignee: sfraser_bugs → joshmoz
Product: Core → Core Graveyard
Removed from the tree at some point, -> FIXED.
Assignee: joshmoz → nobody
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.