Index: [thread] [date] [subject] [author]
  From: Jan Kneschke <Jan.Kneschke@kiel.netsurf.de>
  To  : ggi-develop@eskimo.com
  Date: Mon, 26 Jul 1999 21:29:32 +0200 (CEST)

Re: Xblit 1 -> 16 on X

On Mon, 26 Jul 1999, Andrew Apted wrote:

> 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).
i've done it:

	col.r = col.b = col.g = 0xffff;
	ggiSetGCForeground(memvis,ggiMapColor(memvis,&col));

i've attached the main-program, perhaps this helps to find the spot. 

btw: i know that some function can fail and the program is not prepared 
for this situation.
 
>   Andrew Apted   <ajapted@netspace.net.au>      \/


thats all
  Jan

--- 
       Project: GGI - S3-Vision-driver -- http://www.ggi-project.org/
         -)=  Jan (Weigon) Kneschke -- Kiel -- Northern Germany =(-

font.c

Index: [thread] [date] [subject] [author]