forked from brunodev85/winlator
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. TouchpadView: - 把自己的Matrix删掉,改为官方的XForm(为啥非得用数组呢,直接用现成的类不好吗) - 源代码中有错误。updateXform中新建Viewport(就是原来的Transformation),只有一个安卓/x单位的scale,但是拉伸全屏时横向缩放和纵向缩放是不同的。 - 另外切换拉伸全屏时,TouchpadView里的矩阵也不会更新。所以还是像以前一样在onTouchEvent里时刻监测全屏变化了。 2. 修复旋转屏幕后画面位置错误问题 - 需要手动刷新视图。GLRenderer.viewportNeedsUpdate 用于标识本次绘制是否需要更新视图范围。在onDrawFrame里用了一次就被置为false。反射设置为true就行了
- Loading branch information
Showing
3 changed files
with
97 additions
and
147 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
Oops, something went wrong.