Merge change 8015 into donut

* changes:
  Reset the mDpiX and mDpiY values when qemu.sf.lcd_density is defined.
This commit is contained in:
Android (Google) Code Review
2009-07-28 16:16:38 -07:00

View File

@ -197,6 +197,9 @@ void DisplayHardware::init(uint32_t dpy)
LOGW("ro.sf.lcd_density not defined, using 160 dpi by default."); LOGW("ro.sf.lcd_density not defined, using 160 dpi by default.");
strcpy(property, "160"); strcpy(property, "160");
} }
} else {
/* for the emulator case, reset the dpi values too */
mDpiX = mDpiY = atoi(property);
} }
mDensity = atoi(property) * (1.0f/160.0f); mDensity = atoi(property) * (1.0f/160.0f);