[fpc-pascal]PutImage
Florian Klaempfl
florian at klaempfl.de
Fri Nov 16 12:07:17 CET 2001
At 11:37 16.11.01 +0100, you wrote:
>On Thu, Nov 15, 2001 at 04:52:14PM +0100, Jonas Maebe wrote:
>
> > > I try to write a program, that uses PutImage.
> > > It works under Linux and under Dos, but not under Windows.
> > > Isn't that yet implemented in 1.0.4?
> >
> > For all platforms, putimage currently simply calls putpixel for each pixel
> > of the image to draw it, so if putpixel works, so should putimage.
>
>I found the real problem.
>Altough I set Windows to HiColor, the InitGraph chose a mode with
>MaxColor=256 ???
Because the graph unit for windows doesn't know HiColor and TrueColor
modes :(
The windows graph unit is an ugly hack (done by me...) to get old
TP DOS programs working on a windows desktop.
>A Putpixel with a higher color-value hangs the system!
>And my image was for a 16Bit mode.
More information about the fpc-pascal
mailing list