[PATCH v2] staging: fbtft: fb_st7789v: support setting offset

2024-04-09 Thread Yuguo Pei
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

Re: [PATCH] staging: fbtft: fb_st7789v: support setting offset

2024-04-09 Thread 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,