Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
build
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
lf
build
Commits
41a840b4
Commit
41a840b4
authored
11 years ago
by
Michael Vines
Browse files
Options
Downloads
Patches
Plain Diff
gecko: widget: gonk: Add ro.sf.lcd_density DPI override
Change-Id: Ie07b5cf72dde7dc53cb7a17a9520924166d10b4e
parent
43829d56
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patch/all/gecko/widget-gonk-Add-ro.sf.lcd_density-DPI-override.patch
+28
-0
28 additions, 0 deletions
...ecko/widget-gonk-Add-ro.sf.lcd_density-DPI-override.patch
with
28 additions
and
0 deletions
patch/all/gecko/widget-gonk-Add-ro.sf.lcd_density-DPI-override.patch
0 → 100644
+
28
−
0
View file @
41a840b4
From e5869a791131bc11fcd17376f1396bfe4a0e5b65 Mon Sep 17 00:00:00 2001
From: Michael Vines <mvines@codeaurora.org>
Date: Tue, 18 Feb 2014 20:30:41 -0800
Subject: [PATCH] widget: gonk: Add ro.sf.lcd_density DPI override
Change-Id: Ibe7fb32ada9e7d8bad73c1a97f3ff126eca810b8
---
widget/gonk/nsWindow.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/widget/gonk/nsWindow.cpp b/widget/gonk/nsWindow.cpp
index 4b87f8f..5fedb2a 100644
--- a/widget/gonk/nsWindow.cpp
+++ b/widget/gonk/nsWindow.cpp
@@ -514,6 +514,10 @@
nsWindow::MakeFullScreen(bool aFullScreen)
float
nsWindow::GetDPI()
{
+ char density[PROPERTY_VALUE_MAX];
+ if (property_get("ro.sf.lcd_density", density, nullptr) > 0) {
+ return atoi(density);
+ }
return GetGonkDisplay()->xdpi;
}
--
1.8.3.4 (Apple Git-47)
This diff is collapsed.
Click to expand it.
CodeLinaro
@codelinaro
mentioned in commit
0a8adf4c
·
3 years ago
mentioned in commit
0a8adf4c
mentioned in commit 0a8adf4cdc018d990f06ba922a5cd1b4a91e9c9e
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment