diff options
| author | 2010-12-10 17:12:19 -0800 | |
|---|---|---|
| committer | 2010-12-13 16:41:24 -0800 | |
| commit | 3f64f8d8fc05189777e83b4efd3882cbc661fdeb (patch) | |
| tree | 124c21826f04e229fa22a9478794381b98c82eff /libs/rs/rsScriptC.cpp | |
| parent | ffdd591a829af7fddd36a7b80d2a3b8188c871a6 (diff) | |
Don't restore wildly wrong sized wallpapers
If the dimensions of the original are sufficiently different from the
device's preferred dimensions, just don't restore the image. This
avoids bad letterboxing / clipping on e.g. phone <-> tablet data
migration.
The expansion/shrinkage ratios used here allow restores of saved
wallpaper images among HVGA devices, among WVGA variants, and
among tablets; but skip restoring wallpapers across those
categories (where severe clipping or letterboxing would occur).
Bug 3261863
Change-Id: I75e75d6401d18f1df10d75796ee04e21d2302cfa
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
0 files changed, 0 insertions, 0 deletions