diff options
| author | Mathias Agopian <mathias@google.com> | 2009-08-19 17:46:26 -0700 |
|---|---|---|
| committer | Mathias Agopian <mathias@google.com> | 2009-08-19 17:46:26 -0700 |
| commit | 18b6b49ea5235fb6c0802db9a0cc2c6dd20646cb (patch) | |
| tree | 99d8c9f592a961c1af7f583792f4178bce2cc89f /libs/ui/Surface.cpp | |
| parent | b2f8450db8dfbc05724624f93d9ec5e65f0b7e54 (diff) | |
| download | frameworks_base-18b6b49ea5235fb6c0802db9a0cc2c6dd20646cb.zip frameworks_base-18b6b49ea5235fb6c0802db9a0cc2c6dd20646cb.tar.gz frameworks_base-18b6b49ea5235fb6c0802db9a0cc2c6dd20646cb.tar.bz2 | |
fix a bug that caused the PixelFormat viewed by Surface to be wrong.
what happened is that the efective pixel format is calculated by SF but Surface nevew had access to it directly.
in particular this caused query(FORMAT) to return the requested format instead of the effective format.
Diffstat (limited to 'libs/ui/Surface.cpp')
| -rw-r--r-- | libs/ui/Surface.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ui/Surface.cpp b/libs/ui/Surface.cpp index 0ba0a65..36a10cf 100644 --- a/libs/ui/Surface.cpp +++ b/libs/ui/Surface.cpp @@ -197,7 +197,8 @@ SurfaceControl::SurfaceControl( uint32_t w, uint32_t h, PixelFormat format, uint32_t flags) : mClient(client), mSurface(surface), mToken(data.token), mIdentity(data.identity), - mWidth(w), mHeight(h), mFormat(format), mFlags(flags) + mWidth(data.width), mHeight(data.height), mFormat(data.format), + mFlags(flags) { } |
