Skip to content

Commit

Permalink
Fixed|Widgets|libappfw: LineEditWidget is not clipped at all
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 4, 2017
1 parent d38a11b commit a64b6eb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions doomsday/sdk/libappfw/src/widgets/lineeditwidget.cpp
Expand Up @@ -408,9 +408,13 @@ void LineEditWidget::update()

void LineEditWidget::drawContent()
{
root().painter().flush();
auto &painter = root().painter();
painter.flush();

GLState::push().setNormalizedScissor(painter.normalizedScissor());

float const opac = visibleOpacity();
d->uColor = Vector4f(1, 1, 1, opac); // Overall opacity.

// Blink the cursor.
Vector4f col = style().colors().colorf("editor.cursor");
Expand All @@ -421,11 +425,10 @@ void LineEditWidget::drawContent()
}
d->uCursorColor = col;

// Overall opacity.
d->uColor = Vector4f(1, 1, 1, opac);

d->updateGeometry();
d->drawable.draw();

GLState::pop();
}

bool LineEditWidget::handleEvent(Event const &event)
Expand Down

0 comments on commit a64b6eb

Please sign in to comment.