Closed
Bug 7796
Opened 26 years ago
Closed 26 years ago
[PP]nsDeviceContextMac::GetDeviceSurfaceDimensions is not impliment on the mac
Categories
(Core :: Layout, defect, P3)
Tracking
()
VERIFIED
FIXED
M9
People
(Reporter: davidm, Assigned: beard)
References
Details
The following diff makes the mac work in a limited fashion Index: nsDeviceContextMac.cpp =================================================================== RCS file: /cvsroot/mozilla/gfx/src/mac/nsDeviceContextMac.cpp,v retrieving revision 1.51 diff -r1.51 nsDeviceContextMac.cpp 324,325c324 < aWidth = 1; < aHeight = 1; --- > GDHandle device = ::GetMainDevice();; 326a326,327 > aWidth = (**device).gdRect.right; > aHeight = (**device).gdRect.bottom; but someone really should do the work to be multimonitor friendly. As there is no gfx component I am assiging to layout
Note that the above code is wrong since from some reason the PRInt32 is really supposed to be one of the fixed point values. I don't know why.
Updated•26 years ago
|
Assignee: rickg → beard
Updated•26 years ago
|
Target Milestone: M8
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Summary: nsDeviceContextMac::GetDeviceSurfaceDimensions is not impliment on the mac → [PP]nsDeviceContextMac::GetDeviceSurfaceDimensions is not impliment on the mac
Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 6•26 years ago
|
||
I put in a quick fix that just uses the GrayRgn (the region encompassing the entire desktop) and returns the dimensions of its bounding box. Checked fix in as mozilla/gfx/src/mac/nsDeviceContextMac.cpp,1.52.
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•