diff options
| author | RSDuck <RSDuck@users.noreply.github.com> | 2020-05-12 16:07:28 +0200 | 
|---|---|---|
| committer | RSDuck <rsduck@users.noreply.github.com> | 2020-06-16 12:06:42 +0200 | 
| commit | e7d076403df7afd6dc8304196211b49e3ed7f464 (patch) | |
| tree | 1d5ff1e743839f271de77f8bd312c985033c6a89 /src/GPU2D.cpp | |
| parent | 4cff4b52286a7d1a7e40817d52a5d271a937ddc2 (diff) | |
| parent | c17f7b100e36edb1c728dbf21c77f9484d1820c6 (diff) | |
Merge branch 'generic_jit' of https://github.com/Arisotura/melonDS into generic_jit
Diffstat (limited to 'src/GPU2D.cpp')
| -rw-r--r-- | src/GPU2D.cpp | 16 | 
1 files changed, 5 insertions, 11 deletions
| diff --git a/src/GPU2D.cpp b/src/GPU2D.cpp index 1c6cf0c..604a4ee 100644 --- a/src/GPU2D.cpp +++ b/src/GPU2D.cpp @@ -202,16 +202,8 @@ void GPU2D::DoSavestate(Savestate* file)          file->Var32(&CaptureCnt);      } -    if (file->IsAtleastVersion(2, 1)) -    { -        file->Var32(&Win0Active); -        file->Var32(&Win1Active); -    } -    else -    { -        Win0Active = 0; -        Win1Active = 0; -    } +    file->Var32(&Win0Active); +    file->Var32(&Win1Active);      if (!file->Saving)      { @@ -232,7 +224,7 @@ void GPU2D::SetFramebuffer(u32* buf)      Framebuffer = buf;  } -void GPU2D::SetDisplaySettings(bool accel) +void GPU2D::SetRenderSettings(bool accel)  {      Accelerated = accel; @@ -728,6 +720,8 @@ u32 GPU2D::ColorComposite(int i, u32 val1, u32 val2)      case 3: return ColorBrightnessDown(val1, EVY);      case 4: return ColorBlend5(val1, val2);      } + +    return val1;  } |