X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be5a51fb592f3fa2ba38ac6cd1e488d6d806058c..6d06e061dc11140151be2914c30c759ee15e3fe7:/samples/richedit/wxllist.cpp diff --git a/samples/richedit/wxllist.cpp b/samples/richedit/wxllist.cpp index 89d04ce7f9..51ba0553e8 100644 --- a/samples/richedit/wxllist.cpp +++ b/samples/richedit/wxllist.cpp @@ -631,36 +631,36 @@ wxLayoutObjectCmd::Read(wxString &istr) if(obj->m_StyleInfo->m_fg_valid) { - int red, green, blue; + unsigned char red, green, blue; ReadString(tmp, istr); tmp.ToLong(&l); - red = (int) l; + red = (unsigned char) l; ReadString(tmp, istr); tmp.ToLong(&l); - green = (int) l; + green = (unsigned char) l; ReadString(tmp, istr); tmp.ToLong(&l); - blue = (int) l; + blue = (unsigned char) l; obj->m_StyleInfo->m_fg = wxColour(red, green, blue); } if(obj->m_StyleInfo->m_bg_valid) { - int red, green, blue; + unsigned char red, green, blue; ReadString(tmp, istr); tmp.ToLong(&l); - red = (int) l; + red = (unsigned char) l; ReadString(tmp, istr); tmp.ToLong(&l); - green = (int) l; + green = (unsigned char) l; ReadString(tmp, istr); tmp.ToLong(&l); - blue = (int) l; + blue = (unsigned char) l; obj->m_StyleInfo->m_bg = wxColour(red, green, blue); } @@ -1100,7 +1100,7 @@ wxLayoutLine::Draw(wxDC &dc, pos.y += m_BaseLine; - CoordType xpos = 0; // cursorpos, lenght of line + CoordType xpos = 0; // cursorpos, length of line CoordType from, to;