Text viewer: Fix limit calculation in col_limit() which maximizes overlapping in wide mode

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25511 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomer Shalev 2010-04-07 17:11:09 +00:00
parent eeb0c088fe
commit c56d2b50b3

View file

@ -2373,7 +2373,7 @@ static int col_limit(int col)
if (col < 0)
col = 0;
else
if (col >= max_width)
if (col >= max_width - draw_columns)
col = max_width - draw_columns;
return col;