forked from Mirrors/openclonk
fix incorrect clipping in script GUI windows (#1592)
I am not sure why the 'isMainWindow' was there. It wasn't there inshapetextures7319f7b3cc
and got introduced in the major rework in049088be78
- I guess it was just an oversight that was not noticed because usually the UI windows have the text or other things that need to scroll on a deeper level. Anyway, checking whether the window is a script-root window does not make any sense as far as I can see now.
parent
82b090c7ca
commit
ba2cf8f096
|
@ -1893,7 +1893,7 @@ bool C4ScriptGuiWindow::Draw(C4TargetFacet &cgo, int32_t player, C4Rect *current
|
|||
bool C4ScriptGuiWindow::GetClippingRect(int32_t &left, int32_t &top, int32_t &right, int32_t &bottom)
|
||||
{
|
||||
const int32_t &style = props[C4ScriptGuiWindowPropertyName::style].GetInt();
|
||||
if (IsRoot() || isMainWindow || (style & C4ScriptGuiWindowStyleFlag::NoCrop))
|
||||
if (IsRoot() || (style & C4ScriptGuiWindowStyleFlag::NoCrop))
|
||||
return false;
|
||||
|
||||
if (pScrollBar->IsVisible())
|
||||
|
|
Loading…
Reference in New Issue