summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorHerbert Duerr <hdu@openoffice.org>2001-07-11 14:03:29 +0000
committerHerbert Duerr <hdu@openoffice.org>2001-07-11 14:03:29 +0000
commit9525a5c0d254d7bbea357b194063326e08b2f377 (patch)
treef79b4a388fc1461b409b83d3e9faaa363ae7c71c /vcl/source
parentcf23d2cc01d063429bfa6259e892db1d8eecca4f (diff)
#88127# invert bit color of GetGlyphBitmap1() to make LaserEffects work on all platforms
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/glyphs/gcach_ftyp.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/vcl/source/glyphs/gcach_ftyp.cxx b/vcl/source/glyphs/gcach_ftyp.cxx
index 122ead657063..eb983e3675b2 100644
--- a/vcl/source/glyphs/gcach_ftyp.cxx
+++ b/vcl/source/glyphs/gcach_ftyp.cxx
@@ -2,8 +2,8 @@
*
* $RCSfile: gcach_ftyp.cxx,v $
*
- * $Revision: 1.50 $
- * last change: $Author: hdu $ $Date: 2001-07-11 14:58:56 $
+ * $Revision: 1.51 $
+ * last change: $Author: hdu $ $Date: 2001-07-11 15:03:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -770,10 +770,7 @@ bool FreetypeServerFont::GetGlyphBitmap1( int nGlyphIndex, RawBitmap& rRawBitmap
rRawBitmap.mpBits = new unsigned char[ rRawBitmap.mnAllocated ];
}
- const unsigned char* pSrc = rBitmapFT.buffer;
- unsigned char* pDest = rRawBitmap.mpBits;
- for( int i = nNeededSize; --i >= 0; )
- *(pDest++) = ~*(pSrc++);
+ memcpy( rRawBitmap.mpBits, rBitmapFT.buffer, nNeededSize );
FT_Done_Glyph( aGlyphFT );
return true;