Skip to content

Commit

Permalink
Client|LineEditWidget: Cursor appears on the boundary of characters
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed May 21, 2013
1 parent b9dd5ca commit e401865
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doomsday/client/src/ui/widgets/lineeditwidget.cpp
Expand Up @@ -190,10 +190,10 @@ DENG2_OBSERVES(Atlas, Reposition)
Vector2f const cp = wraps.charTopLeftInPixels(cursorPos.y, cursorPos.x) +
contentRect.topLeft;

v.pos = cp; verts << v;
v.pos = cp + Vector2f(2, 0); verts << v;
v.pos = cp + Vector2f(0, font->height().value()); verts << v;
v.pos = cp + Vector2f(2, font->height().value()); verts << v;
v.pos = cp + Vector2f(-1, 0); verts << v;
v.pos = cp + Vector2f(1, 0); verts << v;
v.pos = cp + Vector2f(-1, font->height().value()); verts << v;
v.pos = cp + Vector2f(1, font->height().value()); verts << v;

drawable.buffer<VertexBuf>(ID_BUF_CURSOR)
.setVertices(gl::TriangleStrip, verts, gl::Static);
Expand Down

0 comments on commit e401865

Please sign in to comment.