mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 07:04:36 +00:00
Few more quick rendering fixes
This commit is contained in:
parent
1198e3de6d
commit
7677822665
2 changed files with 3 additions and 3 deletions
|
@ -323,7 +323,7 @@ namespace LayoutBXLYT
|
|||
float contentWidth = ((window.StretchLeft + (pane.Width - frameLeft)) - frameRight) + window.StretchRight;
|
||||
float contentHeight = ((window.StretchTop + (pane.Height - frameTop)) - frameBottom) + window.StretchBottm;
|
||||
|
||||
if (!window.NotDrawnContent)
|
||||
if (!window.NotDrawnContent && window.WindowKind != WindowKind.HorizontalNoContent)
|
||||
{
|
||||
SetupShaders(window.Content.Material, Textures);
|
||||
DrawQuad(dX + frameLeft - window.StretchLeft,
|
||||
|
|
|
@ -73,9 +73,9 @@ namespace LayoutBXLYT
|
|||
float shiftX = 0;
|
||||
float shiftY = 0;
|
||||
if (transform.Scale.X < 0)
|
||||
shiftX = 1;
|
||||
shiftX = -1;
|
||||
if (transform.Scale.Y < 0)
|
||||
shiftY = 1;
|
||||
shiftY = -1;
|
||||
|
||||
SetVec2("uvScale0",new Vector2(transform.Scale.X, transform.Scale.Y));
|
||||
SetFloat("uvRotate0", transform.Rotate);
|
||||
|
|
Loading…
Reference in a new issue