mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-03-21 18:31:10 +00:00
Fix text word wrapping under scrollbar
This commit is contained in:
parent
e953f3a0c7
commit
b463c8e656
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ void LogViewer::OnPaintFrame(Canvas* canvas)
|
|||
|
||||
void LogViewer::OnPaint(Canvas* canvas)
|
||||
{
|
||||
double width = GetWidth();
|
||||
double width = GetWidth() - scrollbar->GetFrameGeometry().width;
|
||||
double y = GetHeight();
|
||||
size_t start = std::min((size_t)std::round(scrollbar->GetPosition() + 1.0), lines.size());
|
||||
for (size_t i = start; i > 0 && y > 0.0; i--)
|
||||
|
|
Loading…
Reference in a new issue