Update hwcomposer.cpp

could be more working...