MCPcopy Create free account
hub / github.com/buggins/coolreader / Clear

Method Clear

crengine/src/lvdrawbuf.cpp:651–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649}
650
651void LVGrayDrawBuf::Clear( lUInt32 color )
652{
653 color = rgbToGrayMask( color, _bpp );
654#if (GRAY_INVERSE==1)
655 color ^= 0xFF;
656#endif
657 memset( _data, color, _rowsize * _dy );
658// for (int i = _rowsize * _dy - 1; i>0; i--)
659// {
660// _data[i] = (lUInt8)color;
661// }
662 SetClipRect( NULL );
663}
664
665void LVGrayDrawBuf::FillRect( int x0, int y0, int x1, int y1, lUInt32 color32 )
666{

Callers

nothing calls this directly

Calls 2

rgbToGrayMaskFunction · 0.85
rgb888to565Function · 0.85

Tested by

no test coverage detected