mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 11:54:30 +01:00
Quick workaround for rendering bug caused by layout bugs..
This commit is contained in:
1 parent
a75c4d283d
commit
96a08b3393
1 file changed
+5
@@ -617,6 +617,11 @@ void TextView::Draw(UIContext &dc) {
|
||||
bool clip = false;
|
||||
if (w > bounds_.w || h > bounds_.h)
|
||||
clip = true;
|
||||
if (bounds_.w < 0 || bounds_.h < 0) {
|
||||
// We have a layout but, but try not to screw up rendering.
|
||||
// TODO: Fix properly.
|
||||
clip = false;
|
||||
}
|
||||
if (clip) {
|
||||
Bounds clipRect = bounds_.Expand(10); // TODO: Remove this hackery
|
||||
dc.Flush();
|
||||
|
||||
Reference in new issue
Block a user