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)
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.
Comment 1•22 years ago
|
||
Ouch.
Does MacOSX really have no way to get the resolution for the current display
device ?!
| Reporter | ||
Comment 2•22 years ago
|
||
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.
| Reporter | ||
Updated•16 years ago
|
Assignee: sfraser_bugs → joshmoz
| Assignee | ||
Updated•16 years ago
|
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.
Description
•