am 4c05dd17
: Ensure that viewport and frame are initialized.
* commit '4c05dd175ee3bd5119eecf368742b6510a8cfa6c': Ensure that viewport and frame are initialized.
This commit is contained in:
commit
7ee89420d8
@ -1728,6 +1728,8 @@ void SurfaceFlinger::onInitializeDisplays() {
|
||||
d.what = DisplayState::eDisplayProjectionChanged;
|
||||
d.token = mDefaultDisplays[DisplayDevice::DISPLAY_PRIMARY];
|
||||
d.orientation = DisplayState::eOrientationDefault;
|
||||
d.frame.makeInvalid();
|
||||
d.viewport.makeInvalid();
|
||||
displays.add(d);
|
||||
setTransactionState(state, displays, 0);
|
||||
|
||||
|
@ -192,7 +192,6 @@ Transform::vec3 Transform::transform(const vec3& v) const {
|
||||
|
||||
void Transform::transform(float* point, int x, int y) const
|
||||
{
|
||||
const mat33& M(mMatrix);
|
||||
vec2 v(x, y);
|
||||
v = transform(v);
|
||||
point[0] = v[0];
|
||||
|
Loading…
Reference in New Issue
Block a user