Author: tkreuzer
Date: Mon May 16 18:13:29 2011
New Revision: 51798
URL:
http://svn.reactos.org/svn/reactos?rev=51798&view=rev
Log:
[GDI FONT DRIVER]
- Implement copying 1bpp bitmaps
- The driver now "works" as a replacement for the original true type driver in
Windows, several glitches need to be fixed
Modified:
branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/glyph.c
Modified: branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/glyph.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/GdiFontDriver/drivers…
==============================================================================
--- branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/glyph.c [iso-8859-1]
(original)
+++ branches/GSoC_2011/GdiFontDriver/drivers/video/font/ftfd/glyph.c [iso-8859-1] Mon May
16 18:13:29 2011
@@ -434,7 +434,25 @@
BYTE *pjDest,
FT_Bitmap *ftbitmap)
{
- __debugbreak();
+ ULONG ulRows, ulDstDelta, ulSrcDelta;
+ PBYTE pjDstLine, pjSrcLine;
+
+ pjDstLine = pjDest;
+ ulDstDelta = (ftbitmap->width + 7) / 8;
+
+ pjSrcLine = ftbitmap->buffer;
+ ulSrcDelta = abs(ftbitmap->pitch);
+
+ ulRows = ftbitmap->rows;
+ while (ulRows--)
+ {
+ /* Copy one line */
+ memcpy(pjDstLine, pjSrcLine, ulDstDelta);
+
+ /* Next ros */
+ pjDstLine += ulDstDelta;
+ pjSrcLine += ulSrcDelta;
+ }
}
static