From: Michael R. <re...@eu...> - 2006-01-30 05:56:09
|
Hi there, I just checked in a bigger change. In preparation for the image widget (yes, there will be an image widget where you can load a PNM or PNG and place it in the background) I converted the whole graphic subsystem to RGBA (yes, Alpha-blending) The X11 driver works, some of the other drivers *should* work. At least they compile... major change: Do not access drv_generic_graphic_FB[] anymore, but use the drv_generic_graphic_gray(row, col) function instead, which returns the gray value of a pixel. For B/W displays, draw a pixel if gray > 0 (to keep things simple) I'm especially asking the authors of the G15 and LUI driver to check their code, because I cannot test these displays (in the case of LUI, I cannot even compile because of missing headers) Second, I'm currently doing alpha-blending with integer arithmetics. But I'm not sure if the code is right (but I'm sure it's far from optimal). Someone with deeper knowledge than me? Third, the X11 driver is very slow now, because I'm doing an XAllocColor() for every pixel. Again, I'd need someone with X11 programming knowledge.... TIA, Michael -- Michael Reinelt <re...@eu...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |