fixes w.r.t. size_t vs. int

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-11-28 23:10:59 +00:00
parent f7db440e1f
commit b2abc29318

View File

@@ -1228,8 +1228,8 @@ void wxPostScriptDC::DoDrawText( const wxString& text, wxCoord x, wxCoord y )
fprintf( m_pstream, "(" );
const wxWX2MBbuf textbuf = text.mb_str();
int len = strlen(textbuf);
int i;
size_t len = strlen(textbuf);
size_t i;
for (i = 0; i < len; i++)
{
int c = (unsigned char) textbuf[i];
@@ -1338,14 +1338,14 @@ void wxPostScriptDC::DoDrawRotatedText( const wxString& text, wxCoord x, wxCoord
char buffer[100];
sprintf(buffer, "%.8f rotate\n", angle);
int i;
size_t i;
for (i = 0; i < 100; i++)
if (buffer[i] == ',') buffer[i] = '.';
fprintf(m_pstream, buffer);
fprintf( m_pstream, "(" );
const wxWX2MBbuf textbuf = text.mb_str();
int len = strlen(textbuf);
size_t len = strlen(textbuf);
for (i = 0; i < len; i++)
{
int c = (unsigned char) textbuf[i];