-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made distinction between different display resolutions (ldpi, mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi) to determine notfication/status bar height. Now when user clicks fullscreen, the bitmap is maxed out as good as possible. Sometimes the behaviour is not optimal, this mostly happens when bitmapheight > surfaceheight, then the scale is not always fully zoomed but I was not able to find a proper solution for this. Also fixed bug where the bitmap was not centered after exiting fullscreen mode, this happened due to the fact that the surfaceheight to determine the middle of the screen was still too small (actual screen size - top-/bottom bar).
- Loading branch information
1 parent
09a5666
commit d7fa5ed
Showing
2 changed files
with
86 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters