MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / Initialize

Method Initialize

source/Video.cpp:828–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826}
827
828void Video::Initialize(uint8_t* frameBuffer, bool resetState)
829{
830 SetFrameBuffer(frameBuffer);
831
832 if (resetState)
833 {
834 // RESET THE VIDEO MODE SWITCHES AND THE CHARACTER SET OFFSET
835 VideoResetState();
836 }
837
838 // DRAW THE SOURCE IMAGE INTO THE SOURCE BIT BUFFER
839 ClearFrameBuffer();
840
841 // CREATE THE OFFSET TABLE FOR EACH SCAN LINE IN THE FRAME BUFFER
842 NTSC_VideoInit(GetFrameBuffer());
843
844#if 0
845 DDInit(); // For WaitForVerticalBlank()
846#endif
847}
848
849void Video::Destroy(void)
850{

Callers 1

Snapshot_LoadState_v2Function · 0.45

Calls 1

NTSC_VideoInitFunction · 0.85

Tested by

no test coverage detected