mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-25 17:59:24 +01:00
fixed what I just did
This commit is contained in:
parent
fff25c6c12
commit
d70e89aff6
1 changed files with 2 additions and 2 deletions
|
@ -135,9 +135,9 @@ namespace MLEM.Ui.Elements {
|
||||||
if (this.Texture.Value != null)
|
if (this.Texture.Value != null)
|
||||||
batch.Draw(this.Texture, this.DisplayArea, Color.White * alpha, this.Scale);
|
batch.Draw(this.Texture, this.DisplayArea, Color.White * alpha, this.Scale);
|
||||||
// if we handle overflow, draw using the render target in DrawUnbound
|
// if we handle overflow, draw using the render target in DrawUnbound
|
||||||
if (!this.scrollOverflow) {
|
if (!this.scrollOverflow || this.renderTarget == null) {
|
||||||
base.Draw(time, batch, alpha, blendState, samplerState, matrix);
|
base.Draw(time, batch, alpha, blendState, samplerState, matrix);
|
||||||
} else if (this.renderTarget != null) {
|
} else {
|
||||||
// draw the actual render target (don't apply the alpha here because it's already drawn onto with alpha)
|
// draw the actual render target (don't apply the alpha here because it's already drawn onto with alpha)
|
||||||
batch.Draw(this.renderTarget, this.GetRenderTargetArea(), Color.White);
|
batch.Draw(this.renderTarget, this.GetRenderTargetArea(), Color.White);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue