Closed Bug 374567 Opened 19 years ago Closed 19 years ago

Make GetAppUnitsPerDevUnit return a PRUint32

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: roc, Assigned: roc)

Details

Attachments

(1 file)

Attached patch fix — — Splinter Review
Attachment #259063 - Flags: review?(pavlov)
Comment on attachment 259063 [details] [diff] [review] fix >- double appUnitsPerDevUnit = aTextRun->GetAppUnitsPerDevUnit(); >- double devUnitsPerAppUnit = 1/appUnitsPerDevUnit; >+ const PRUint32 appUnitsPerDevUnit = aTextRun->GetAppUnitsPerDevUnit(); >+ const double devUnitsPerAppUnit = 1/gfxFloat(appUnitsPerDevUnit); it seems like it would be more clear here to do 1.0/appUnitsPerDevUnit or 1.0/double(appUnitsPerDevUnit) rather than converting appUnitsPerDevUnit to a gfxFloat and having 1 as an int.. either way.
Attachment #259063 - Flags: review?(pavlov) → review+
checked in with 1.0/double(appUnitsPerDevUnit).
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: