ethanmdavidson/DeathProgressOriginal

Portrait mode doesn't work correctly

ethanmdavidson opened this issue · 1 comments

tested in emulated 10in tablet: in portrait mode, settings and preview work fine, but when actually on the homescreen the percentage is drawn way too low on the screen. Need to look at the wallpaper api to figure out how to always get the correct screen dimensions.

caused by getDesiredMinWidth() and getDesiredMinHeight() returning different values. During preview they return 1280x800 but when drawing wallpaper on home screen returns 1920x1280. Fixed by explicitly checking the surface dimensions. Surface dimensions do vary slightly (depending on navbar presence or opacity) but this still seems to be the best way to get the size of what will actually be displayed.