I am using the LIN driver with 1bpp with a 144 pixel display with. The problem I am experiencing is that emWin seems to still treat this as a 128 pixel width.
E.g. if i draw two pixels right below each other, the second pixel is written 128 bits later, not 144. The same happens when I increase the display width, until I reach 160, where it is correct again (second pixel is drawn 160 bits later in memory). The same happens for other display sizes as well. Only sizes divisible by 32 seems to work correctly.
It seems to me that emWin assumes the display width is divisible by 32 and performs some optimizations based on this.
Is there a way to fix this?
E.g. if i draw two pixels right below each other, the second pixel is written 128 bits later, not 144. The same happens when I increase the display width, until I reach 160, where it is correct again (second pixel is drawn 160 bits later in memory). The same happens for other display sizes as well. Only sizes divisible by 32 seems to work correctly.
It seems to me that emWin assumes the display width is divisible by 32 and performs some optimizations based on this.
Is there a way to fix this?