MCPcopy Create free account
hub / github.com/TASEmulators/fceux / FCEU_InitVirtualVideo

Function FCEU_InitVirtualVideo

src/video.cpp:118–139  ·  view source on GitHub ↗

* Return: Flag that indicates whether the function was succesful or not. * * TODO: This function is Windows-only. It should probably be moved. **/

Source from the content-addressed store, hash-verified

116* TODO: This function is Windows-only. It should probably be moved.
117**/
118int FCEU_InitVirtualVideo(void)
119{
120 //Some driver code may allocate XBuf externally.
121 //256 bytes per scanline, * 240 scanline maximum
122 if(XBuf)
123 return 1;
124
125 XBuf = (u8*)FCEU_amalloc(256 * 256);
126 XBackBuf = (u8*)FCEU_amalloc(256 * 256);
127 XDBuf = (u8*)FCEU_amalloc(256 * 256);
128 XDBackBuf = (u8*)FCEU_amalloc(256 * 256);
129
130
131 xbsave = XBuf;
132
133 memset(XBuf,128,256*256);
134 memset(XBackBuf,128,256*256);
135 memset(XDBuf,0,256*256);
136 memset(XDBackBuf,0,256*256);
137
138 return 1;
139}
140
141#ifdef FRAMESKIP
142void FCEU_PutImageDummy(void)

Callers 1

FCEUI_InitializeFunction · 0.85

Calls 1

FCEU_amallocFunction · 0.85

Tested by

no test coverage detected