commit | 135e5899f70a67e62baaf6dbec7ba2ce611ca16a | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Sun Sep 30 16:43:20 2012 -0700 |
committer | Mathias Agopian <mathias@google.com> | Sun Sep 30 16:43:20 2012 -0700 |
tree | 0e83801bb331052c2d47fabfc156d625c1cc1132 | |
parent | bae92d0d605e99a14731add4f11b72413b2835e5 [diff] [blame] |
save/restore viewport properly when taking screenshot Bug: 7241739 Change-Id: Iba8b9ffc75ab47fbc56169e65da26d96850a9297
diff --git a/services/surfaceflinger/DisplayDevice.cpp b/services/surfaceflinger/DisplayDevice.cpp index f3acbc5..ff1af83 100644 --- a/services/surfaceflinger/DisplayDevice.cpp +++ b/services/surfaceflinger/DisplayDevice.cpp
@@ -273,6 +273,7 @@ glLoadIdentity(); // put the origin in the left-bottom corner glOrthof(0, w, 0, h, 0, 1); // l=0, r=w ; b=0, t=h + glMatrixMode(GL_MODELVIEW); } // ----------------------------------------------------------------------------