Index:
[thread]
[date]
[subject]
[author]
From: Andrew Apted <ajapted@netspace.net.au>
To : ggi-develop@eskimo.com
Date: Mon, 26 Jul 1999 13:03:17 +1000
Re: Xblit 1 -> 16 on X
Jan Kneschke writes:
> i wanted to draw a connection between Freetype and GGI. As we all know,
> Freetype render its letters into a bitmap (display-memory).
> the easiest way to transform this bitmap into a real picture is
> xblitting it to the visual:
>
> ggiGetMode(memvis,&m);
>
> ggiCrossBlit(memvis,0,0,m.virt.x,m.virt.y,vis,0,0);
>
> right ?
>
> sadly the crossblit displays nothing. ( 1 -> 16bpp on X)
Did you set a palette on the memory visual ? The default cross blit
needs the color of each pixel, and without a palette everything prolly
ends up as black (there is no optimised one for src == 1 bit AFAIK).
Cheers,
___________________________________________________
\ /
Andrew Apted <ajapted@netspace.net.au> \/
Index:
[thread]
[date]
[subject]
[author]