-------------------------------------------------------------------------
| 564 | |
| 565 | //------------------------------------------------------------------------- |
| 566 | void gsv_text::text(const char* text) |
| 567 | { |
| 568 | if(text == 0) |
| 569 | { |
| 570 | m_chr[0] = 0; |
| 571 | m_text = m_chr; |
| 572 | return; |
| 573 | } |
| 574 | unsigned new_size = strlen(text) + 1; |
| 575 | if(new_size > m_text_buf.size()) |
| 576 | { |
| 577 | m_text_buf.resize(new_size); |
| 578 | } |
| 579 | memcpy(&m_text_buf[0], text, new_size); |
| 580 | m_text = &m_text_buf[0]; |
| 581 | } |
| 582 | |
| 583 | //------------------------------------------------------------------------- |
| 584 | void gsv_text::rewind(unsigned) |