cast fix, hopefully this helps PalmOS

svn-id: r16201
This commit is contained in:
Max Horn 2004-12-20 22:54:20 +00:00
parent 179e70ea9c
commit c6065d450f

View file

@ -238,7 +238,7 @@ void AboutDialog::drawDialog() {
// Draw text
// TODO: Add a "fade" effect for the top/bottom text lines
const int firstLine = _scrollPos / _lineHeight;
const int lastLine = MIN((uint)(_scrollPos + _h) / _lineHeight + 1, _lines.size());
const int lastLine = MIN((_scrollPos + _h) / _lineHeight + 1, (uint32)_lines.size());
int y = _y + kYOff - (_scrollPos % _lineHeight);
for (int line = firstLine; line < lastLine; line++) {