commit | 110b314673b83f8d5a03473901159f404f960f83 | [log] [tgz] |
---|---|---|
author | Jean-Baptiste Queru <jbq@google.com> | Fri Jul 31 17:38:20 2009 -0700 |
committer | Jean-Baptiste Queru <jbq@google.com> | Fri Jul 31 17:38:20 2009 -0700 |
tree | 0afc63c6952ef7303671761749de6e347e29a026 | |
parent | 02f54246f55f0ef4263f91062d350876ade5dd78 [diff] [blame] |
donut snapshot
diff --git a/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp b/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp index eec645e..ab02fa0 100644 --- a/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp +++ b/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp
@@ -197,6 +197,9 @@ LOGW("ro.sf.lcd_density not defined, using 160 dpi by default."); strcpy(property, "160"); } + } else { + /* for the emulator case, reset the dpi values too */ + mDpiX = mDpiY = atoi(property); } mDensity = atoi(property) * (1.0f/160.0f);