Index:
[thread]
[date]
[subject]
[author]
From: Jan Kneschke <Jan.Kneschke@kiel.netsurf.de>
To : ggi-develop@eskimo.com
Date: Sun, 25 Jul 1999 14:34:18 +0200 (CEST)
Xblit 1 -> 16 on X
hi,
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)
this code works:
c = dbuf->read;
for ( i = 0; i < ((m.virt.x+7)/8)*m.virt.y; i++ ) {
int j;
for (j=7;j>=0;j--) {
/* MSB first */
if ((c[i] >> j) & 1) {
ggiDrawPixel(vis,x,y);
}
x++;
}
if (i % ((m.virt.x+7)/8) == ((m.virt.x+7)/8)-1) {
x = 0;
y++;
}
}
am i doing something wrong or is no x-blit 1->16 available ??
thats all
Jan
---
Project: GGI - S3-Vision-driver -- http://www.ggi-project.org/
-)= Jan (Weigon) Kneschke -- Kiel -- Northern Germany =(-
Index:
[thread]
[date]
[subject]
[author]