| 541 | } |
| 542 | |
| 543 | void Tr2FontMeasurer::DrawToHostBitmap( Tr2HostBitmap* hostBitmap ) |
| 544 | { |
| 545 | CCP_STATS_ZONE( __FUNCTION__ ); |
| 546 | |
| 547 | if( !hostBitmap || !hostBitmap->IsValid() || GetBytesPerPixel( hostBitmap->GetFormat() ) != 4 ) |
| 548 | { |
| 549 | return; |
| 550 | } |
| 551 | |
| 552 | DrawToBuffer( hostBitmap->GetWidth(), |
| 553 | hostBitmap->GetHeight(), |
| 554 | hostBitmap->GetRawData(), |
| 555 | hostBitmap->GetPitch() ); |
| 556 | } |
| 557 | |
| 558 | bool Tr2FontMeasurer::HasCommittedText() |
| 559 | { |