From 6272659df64a24b8e75e3d48d48a87c9c0a1fd1f Mon Sep 17 00:00:00 2001 From: Prabir Pradhan Date: Mon, 9 Aug 2021 15:51:25 +0000 Subject: Update SurfaceControl buffer size when increasing pointer size Bug: 187541012 Test: manual: toggle "Large mouse pointer" in settings, observe. Change-Id: I6ab1dae702ba20d40eed706685ef78d118cdb96d --- libs/input/SpriteController.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libs/input/SpriteController.cpp') 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; -- cgit v1.2.3-59-g8ed1b