Skip to content

Commit

Permalink
UI: Clip scissor to screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Dec 10, 2017
1 parent f3c01cf commit 21272a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/native/ui/ui_context.cpp
Expand Up @@ -70,6 +70,8 @@ void UIContext::PushScissor(const Bounds &bounds) {
Bounds clipped = TransformBounds(bounds);
if (scissorStack_.size())
clipped.Clip(scissorStack_.back());
else
clipped.Clip(bounds_);
scissorStack_.push_back(clipped);
ActivateTopScissor();
}
Expand Down

0 comments on commit 21272a4

Please sign in to comment.