[lazarus] Wrong colours in win32
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri Nov 28 08:48:20 EST 2003
On Fri, 28 Nov 2003 13:15:46 +0100 Micha Nelissen
<M.Nelissen at student.tue.nl> wrote:
> Mattias Gaertner wrote:
>
> > On Thu, 27 Nov 2003 22:06:46 +0100 Micha Nelissen
> > <M.Nelissen at student.tue.nl> wrote:
> >
> >
> >>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),
> >
> >
> > Implemented.
> > Now we can add optimized Get/Set pixel methods.
>
> Maybe we should implement palettes first, because that may be much
> harder once the optimizations are done?
I think, the optimizations will have the form:
If (not HasPalette) and (BitsPerpixel=32) and (RedPrec=8) and ... then
Choose_24of32Bit_LSB_GetSetColorFunctions;
This is independent of palettes.
About palettes:
I don't have the needed knowledge to create an useful palette system working
for all platforms. For speed reasons, someone should read the gtk docs
carefully and probably also some of gtk/X sources and tell us, what is fast
and what not. Also we need conversion functions.
Mattias
More information about the Lazarus
mailing list