- typedef unsigned long ulong;
-
- bottom = min(max(ulong(bottom), first), first + owner.height());
- top = min(max(ulong(top), first), first + owner.height());
-
- DrawFromTo(text, top - first, bottom - first);
- expose(0, top - first, owner.workWidth(),
- bottom - first - (top - first));
+ int const bottom = min(max(bottom_tmp, text->first),
+ static_cast<int>(text->first + owner.height()));
+ int const top = min(max(top_tmp, text->first),
+ static_cast<int>(text->first + owner.height()));
+
+ DrawFromTo(text, bv, top - text->first, bottom - text->first, y_offset,
+ x_offset);
+ expose(0, top - text->first, owner.workWidth(),
+ bottom - text->first - (top - text->first));