This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit 247bcc7
committed
[[ Bug 10881 ]] Fix Android openGL compositor surface height issue
This patch fixes an issue on Android where the SurfaceView is being resized
when the keyboard is activated and deactivated. We do not resize the view for
keyboard activation and as the openGL coordinate system has bottom-left origin
the bottom of the stack was being rendered where the top should be.
This patch changes the openGL tile cache to request the surface height directly
through EGL APIs. As these APIs are unavailable on iOS the change is `#ifdef`d
for Android only.
Additionally to ensure the stack is re-drawn without necessarily re-rendering it
the patch implements a new `MCScreenDC::refresh_current_window()` API. This is
particularly important for when the keyboard is hidden as otherwise the area
previously occupied by it will be black.1 parent a5f3460 commit 247bcc7
File tree
6 files changed
+32
-3
lines changed- docs/notes
- engine
- src
6 files changed
+32
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
698 | 708 | | |
699 | 709 | | |
700 | 710 | | |
| |||
2769 | 2779 | | |
2770 | 2780 | | |
2771 | 2781 | | |
2772 | | - | |
2773 | | - | |
| 2782 | + | |
| 2783 | + | |
2774 | 2784 | | |
2775 | 2785 | | |
2776 | 2786 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
850 | 850 | | |
851 | 851 | | |
852 | 852 | | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
853 | 858 | | |
854 | 859 | | |
855 | 860 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
393 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
394 | 405 | | |
395 | 406 | | |
396 | 407 | | |
| |||
0 commit comments