Vista - Sets the current process as dpi aware

RESOLVED FIXED

Status

()

Core
Widget
RESOLVED FIXED
11 years ago
11 years ago

People

(Reporter: dougt, Assigned: dougt)

Tracking

({fixed1.8.1.1})

Trunk
x86
Windows Vista
fixed1.8.1.1
Points:
---
Bug Flags:
blocking1.8.1.1 +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

11 years ago
On vista, there is the ability to change the dpi used.  If we do not mark the application as DPI aware, when going into this mode Firefox text looks blurry.

Vista provides an API to mark the application as DPI aware.  We should use it:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/setprocessdpiaware.asp

Updated

11 years ago
Blocks: 352420
(Assignee)

Comment 1

11 years ago
Created attachment 241012 [details] [diff] [review]
patch v.1
(Assignee)

Comment 2

11 years ago
Comment on attachment 241012 [details] [diff] [review]
patch v.1

this patch isn't something to checkin.
Attachment #241012 - Attachment is obsolete: true
(Assignee)

Comment 3

11 years ago
Created attachment 241017 [details] [diff] [review]
patch v.2

fixed cast.  wondering if we can avoid LoadLibrary.  it is fine to do it this way, but I remember there exists way to avoid the LoadLibrary when the library is implicitly linked.
Attachment #241017 - Flags: review?
(Assignee)

Comment 4

11 years ago
Comment on attachment 241017 [details] [diff] [review]
patch v.2

r=vlad.
Attachment #241017 - Flags: review? → review+
(Assignee)

Comment 5

11 years ago
on the trunk for a while.  safe fix.
Flags: blocking1.8.1.1?
(Assignee)

Comment 6

11 years ago
Checking in widget/src/windows/nsToolkit.cpp;
/cvsroot/mozilla/widget/src/windows/nsToolkit.cpp,v  <--  nsToolkit.cpp
new revision: 3.69; previous revision: 3.68
done

i thought i checked this in a while ago, turns out I didn't.  It has been in my tree for a while.
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
Flags: blocking1.8.1.1? → blocking1.8.1.1+
(Assignee)

Comment 7

11 years ago
Checking in nsToolkit.cpp;
/cvsroot/mozilla/widget/src/windows/nsToolkit.cpp,v  <--  nsToolkit.cpp
new revision: 3.48.4.8; previous revision: 3.48.4.7
done
Keywords: fixed1.8.1.1
You need to log in before you can comment on or make changes to this bug.