Some screen sizes using st7789v chips are different from 240x320,
and offsets need to be set to display all images properly.
For those who use screens with offset, they only need to modify the values
of size and offset, and do not need to a new set_addr_win function.
Signed-off-by: Yuguo Pei
On Tue, 9 Apr 2024 17:49:25 +0200, Greg KH wrote:
> So you are now hard-coding the size?
Yes, the change just helps developers who want to adapt to different screen
sizes.
> Is this always going to be 0, if so, why need it at all?
Not sure. For example, when HEIGHT and WIDTH are 240 and 280,