Fix frame manager serialization. Closes #267.

This commit is contained in:
Christian Speckner 2017-12-15 23:53:11 +01:00
parent 0d609f6845
commit 8e7d0aa7b3
2 changed files with 4 additions and 0 deletions

View File

@ -125,6 +125,7 @@ bool AbstractFrameManager::save(Serializer& out) const
out.putBool(myIsRendering);
out.putBool(myVsync);
out.putBool(myVblank);
out.putInt(myCurrentFrameTotalLines);
out.putInt(myCurrentFrameFinalLines);
out.putInt(myPreviousFrameFinalLines);
out.putInt(myTotalFrames);
@ -149,6 +150,7 @@ bool AbstractFrameManager::load(Serializer& in)
myIsRendering = in.getBool();
myVsync = in.getBool();
myVblank = in.getBool();
myCurrentFrameTotalLines = in.getInt();
myCurrentFrameFinalLines = in.getInt();
myPreviousFrameFinalLines = in.getInt();
myTotalFrames = in.getInt();

View File

@ -214,6 +214,7 @@ bool FrameManager::onSave(Serializer& out) const
out.putInt(myFrameLines);
out.putInt(myHeight);
out.putInt(myFixedHeight);
out.putInt(myYStart);
out.putBool(myJitterEnabled);
@ -240,6 +241,7 @@ bool FrameManager::onLoad(Serializer& in)
myFrameLines = in.getInt();
myHeight = in.getInt();
myFixedHeight = in.getInt();
myYStart = in.getInt();
myJitterEnabled = in.getBool();