mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
Add horizontal orientation to TabHolder. Don't draw things outside current scissor rect.
This commit is contained in:
1 parent
3a51252fb9
commit
cf7ccddf1e
7 files changed
+34
-7
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user