[lazarus] Wrong colours in win32

Micha Nelissen M.Nelissen at student.tue.nl
Thu Nov 27 15:55:54 EST 2003


Mattias Gaertner wrote:

> On Thu, 27 Nov 2003 17:17:50 +0100  Micha Nelissen
> <M.Nelissen at student.tue.nl> wrote:
> 
> 
>>Hi,
>>
>>Very recently colours are wrong on win32. It happens only when using 
>>-dUseFPImage. I think it has to do with recent "fpImage streaming fixed" 
>>which I saw in the logs? AFAICS, no colour related things have changed 
>>in the win32 interface.
> 
> 
> ToDo:
> - first you have to find out the byte and bit order under win32. (Draw some
> very simple images (5x5, 8x8, 13x13, 18x18, 26x26 and 34x34) with a few
> lines. 
> - fix the Get/SetPixel code (with some IFDEFs). 

Done. I used {$ifdef win32}, it should be easy to find, I think :-). I 
leave the implementation of generic byte/bit order in your capable hands 
(as you know the code better), or just say the word, and I'll take a look.

> - you have to try 15/16/24/32 bit depths of the window dektop. 
> - then we can add the missing BitOrder/ByteOrder to the TRawImageDescription
> - then we can implement the all rounder functions.
> - then we add the optimized functions.

Regards,

Micha.






More information about the Lazarus mailing list