mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 15:17:50 +00:00
Video & FrameBase: better split (PR #908)
* Video / FrameBase: move arch specific code to FrameBase. * Video::Initialize & SetFrameBuffer. Ensure initialization and SetBuffer can only happen in the right order. * Video: move virtual functions to FrameBase. With these changes all the virtual functions are in FrameBase and Video gets closer to be (only) the Apple ][ Video device. * Move a few more functions from Video to FrameBase (snapshot related) Now, the inclusion is one way with Video *not* including FrameBase. * FrameBase::VideoRefreshScreen move Video related code to Video. And only leave management to FrameBase.
This commit is contained in:
+3
-3
@@ -351,7 +351,7 @@ void Disk2InterfaceCard::EjectDisk(const int drive)
|
||||
Snapshot_UpdatePath();
|
||||
|
||||
SaveLastDiskImage(drive);
|
||||
GetVideo().Video_ResetScreenshotCounter("");
|
||||
GetFrame().Video_ResetScreenshotCounter("");
|
||||
}
|
||||
|
||||
void Disk2InterfaceCard::UnplugDrive(const int drive)
|
||||
@@ -709,14 +709,14 @@ ImageError_e Disk2InterfaceCard::InsertDisk(const int drive, LPCTSTR pszImageFil
|
||||
GetImageTitle(pszImageFilename, pFloppy->m_imagename, pFloppy->m_fullname);
|
||||
Snapshot_UpdatePath();
|
||||
|
||||
GetVideo().Video_ResetScreenshotCounter(pFloppy->m_imagename);
|
||||
GetFrame().Video_ResetScreenshotCounter(pFloppy->m_imagename);
|
||||
|
||||
if (g_nAppMode == MODE_LOGO)
|
||||
InitFirmware(GetCxRomPeripheral());
|
||||
}
|
||||
else
|
||||
{
|
||||
GetVideo().Video_ResetScreenshotCounter("");
|
||||
GetFrame().Video_ResetScreenshotCounter("");
|
||||
}
|
||||
|
||||
SaveLastDiskImage(drive);
|
||||
|
||||
Reference in New Issue
Block a user