fix build with display-legacy (thanks Y300-0100)