drivers icon indicating copy to clipboard operation
drivers copied to clipboard

Uc8151 Improvements DrawBitmap and DrawBuffer

Open conejoninja opened this issue 9 months ago • 7 comments

conejoninja avatar May 13 '24 20:05 conejoninja

@conejoninja please rebase against latest dev. Thanks!

deadprogram avatar May 15 '24 08:05 deadprogram

Probably the first time I rebase locally, hope I didn't screw up.

conejoninja avatar May 15 '24 08:05 conejoninja

Probably the first time I rebase locally, hope I didn't screw up.

That was perfect. :+1:

deadprogram avatar May 15 '24 09:05 deadprogram

DrawBuffer is a new interface, why didn't you use the conventional DrawBitmap interface? (Or even DrawRGBBitmap8)

aykevl avatar May 25 '24 14:05 aykevl

DrawBitmap already exists and it calls d.SetPixel for each pixel, but I already had the buffer with the data in the correct format, should should avoid a bunch of operations if just copy it instead. It's convenient (in my case)

conejoninja avatar May 25 '24 15:05 conejoninja

DrawBitmap already exists and it calls d.SetPixel for each pixel

Perhaps you would like to improve the implementation of DrawBitmap() instead? :smile_cat:

deadprogram avatar May 25 '24 15:05 deadprogram

DrawBitmap already exists and it calls d.SetPixel for each pixel

Perhaps you would like to improve the implementation of DrawBitmap() instead? 😸

Not sure if possible or worthy. Each byte of the buffer represent a row of 1x8 pixels. Using arbitrary coordinates x,y (ie not a multiple of 8), size and different rotations could be quite complex.

conejoninja avatar May 25 '24 15:05 conejoninja

Just coming back around to this, since the badger2040 repo is using it.

What should we do?

deadprogram avatar Oct 25 '24 19:10 deadprogram