Merge pull request #67 from rakslice/mode_switching_fix

Fix for uninitialized value causing Quicktime image rendering to sometimes fail after mode changes
This commit is contained in:
kanjitalk755 2020-11-18 12:05:31 +09:00 committed by GitHub
commit d0b3dcd623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -879,6 +879,7 @@ static int16 VideoStatus(uint32 pb, VidLocals *csSave)
WriteMacInt16(vpb + vpVersion, 0); // Pixel Map version number
WriteMacInt16(vpb + vpPackType, 0);
WriteMacInt32(vpb + vpPackSize, 0);
WriteMacInt32(vpb + vpPlaneBytes, 0);
WriteMacInt32(vpb + vpHRes, 0x00480000); // horiz res of the device (ppi)
WriteMacInt32(vpb + vpVRes, 0x00480000); // vert res of the device (ppi)
switch (VModes[i].viAppleMode) {