summaryrefslogtreecommitdiff
path: root/libs/androidfw/VirtualKeyMap.cpp
diff options
context:
space:
mode:
author SangWook Han <swhan@nemustech.com> 2012-02-07 17:10:58 +0900
committer SangWook Han <swhan@nemustech.com> 2012-02-07 17:10:58 +0900
commit2b1bcca531ba3fb1959dca1d1227ddef6c204a00 (patch)
tree8e1abdd9178434007a958f97f9c8b91d4440c958 /libs/androidfw/VirtualKeyMap.cpp
parenta081c7b8bc5a3ea19fc7562b333fac525b17bc5f (diff)
ImageWallpaper : get bitmap width before calc screen offset
Inside drawFrameLocked, updateWallpaperLocked() is called after calculae drawing offset using mBackgroundWidth/Height. Because mBackgroundWidth/Height is modified inside updateWallpaperLocked(), it sould be called before Mbackgroundwidth/Height is used. Many market launcher and some phone vendor launcher call suggestDesiredDimenstions with argument (w,h) instead aosp's original (w*2,h) for single page wallpaper. In that case, when launcher orientation changed, ImageWallpaper does not properly display wallpaper image and mostly you can see Black Edge at left. Change-Id: I93ebc4337b01f73d3154346943afa4afd6b1988a
Diffstat (limited to 'libs/androidfw/VirtualKeyMap.cpp')
0 files changed, 0 insertions, 0 deletions