forked from Mirrors/openclonk
script GUIs: fixed clipping with active upper board
I know that the issue was noticable starting from https://git.openclonk.org/openclonk.git/commit/cd57e474935b283e58c7ae7edd137c049f87f90c I don't know WHY it was not noticable before, though. It had probably always been a defect.objectmenu
parent
8cabf67845
commit
8ba1e042a0
|
@ -1487,10 +1487,10 @@ bool C4ScriptGuiWindow::DrawChildren(C4TargetFacet &cgo, int32_t player, int32_t
|
|||
int32_t clipX1(0), clipX2(0), clipY1(0), clipY2(0);
|
||||
bool clipping = GetClippingRect(clipX1, clipY1, clipX2, clipY2);
|
||||
|
||||
const int32_t targetClipX1 = cgo.TargetX + clipX1;
|
||||
const int32_t targetClipY1 = cgo.TargetY + clipY1;
|
||||
const int32_t targetClipX2 = cgo.TargetX + clipX2;
|
||||
const int32_t targetClipY2 = cgo.TargetY + clipY2;
|
||||
const int32_t targetClipX1 = cgo.X + cgo.TargetX + clipX1;
|
||||
const int32_t targetClipY1 = cgo.Y + cgo.TargetY + clipY1;
|
||||
const int32_t targetClipX2 = cgo.X + cgo.TargetX + clipX2;
|
||||
const int32_t targetClipY2 = cgo.Y + cgo.TargetY + clipY2;
|
||||
|
||||
if (clipping)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue