summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2021-08-09 15:51:25 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2021-08-09 16:07:10 +0000
commit6272659df64a24b8e75e3d48d48a87c9c0a1fd1f (patch)
tree8fca8ac50b5b69ef5b0487156852c4df552b354d /libs/input/SpriteController.cpp
parentb525028439d0f11d12ff7fb41107d11126316930 (diff)
Update SurfaceControl buffer size when increasing pointer size
Bug: 187541012 Test: manual: toggle "Large mouse pointer" in settings, observe. Change-Id: I6ab1dae702ba20d40eed706685ef78d118cdb96d
Diffstat (limited to 'libs/input/SpriteController.cpp')
-rw-r--r--libs/input/SpriteController.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/input/SpriteController.cpp b/libs/input/SpriteController.cpp
index acd8bced0612..d10e68816d28 100644
--- a/libs/input/SpriteController.cpp
+++ b/libs/input/SpriteController.cpp
@@ -153,8 +153,7 @@ void SpriteController::doUpdateSprites() {
|| update.state.surfaceHeight < desiredHeight) {
needApplyTransaction = true;
- t.setSize(update.state.surfaceControl,
- desiredWidth, desiredHeight);
+ update.state.surfaceControl->updateDefaultBufferSize(desiredWidth, desiredHeight);
update.state.surfaceWidth = desiredWidth;
update.state.surfaceHeight = desiredHeight;
update.state.surfaceDrawn = false;