Add horizontal orientation to TabHolder. Don't draw things outside current scissor rect.

This commit is contained in:
Henrik Rydgard committed 2013-06-10 22:05:58 +02:00
1 parent 3a51252fb9
commit cf7ccddf1e
7 files changed
+34 -7

No files matched your search

+8
View File
@@ -77,6 +77,14 @@ void UIContext::PopScissor() {
ActivateTopScissor();
}
Bounds UIContext::GetScissorBounds() {
if (!scissorStack_.empty())
return scissorStack_.back();
else
return Bounds(0, 0, dp_xres, dp_yres);
}
void UIContext::ActivateTopScissor() {
if (scissorStack_.size()) {
const Bounds &bounds = scissorStack_.back();