Skip to content

Commit

Permalink
TextContainer: dont print cursor if we arent editable
Browse files Browse the repository at this point in the history
  • Loading branch information
bradallred committed May 18, 2018
1 parent c25d6d4 commit 454d721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gemrb/core/GUI/TextSystem/TextContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ void TextContainer::DrawSelf(Region drawFrame, const Region& clip)
printPos = 0;
ContentContainer::DrawSelf(drawFrame, clip);

if (layout.empty()) {
if (layout.empty() && Editable()) {
Video* video = core->GetVideoDriver();
Region sc = video->GetScreenClip();
video->SetScreenClip(NULL);
Expand Down

0 comments on commit 454d721

Please sign in to comment.