* Return: Flag that indicates whether the function was succesful or not. * * TODO: This function is Windows-only. It should probably be moved. **/
| 116 | * TODO: This function is Windows-only. It should probably be moved. |
| 117 | **/ |
| 118 | int 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 |
| 142 | void FCEU_PutImageDummy(void) |
no test coverage detected