OSDN Git Service

SurfaceFlinger: Fix rect out-of-bounds checks
authorDan Stoza <stoza@google.com>
Wed, 11 Jun 2014 18:20:54 +0000 (11:20 -0700)
committerDan Stoza <stoza@google.com>
Wed, 11 Jun 2014 18:20:54 +0000 (11:20 -0700)
commitbe31f447984b3ab4ac011353b6b53216b4335e04
treedb7b29eb27bcfd2b8135f98dc95aa77142c692ef
parente3b129d4ff0e14050bd55df5fdf0c0f7533c5e8b
SurfaceFlinger: Fix rect out-of-bounds checks

Rects' right and bottom edges are treated as exclusive, so when
checking against maximum width and height, we should use > instead
of >=.

Change-Id: Ifcdf6813c13fcab1a55f16c21064e765e93d49f0
services/surfaceflinger/SurfaceFlinger.cpp