// Run one frame and render the screen
static int Frame(bool bRedraw)						// bRedraw = 0
{
	//if (pVidImage == NULL) {
	if( sdlFramebuf == NULL ) {
	printf("sdlFramebuf==NULL");
		return 1;
	}

	if (bDrvOkay) {
		if (bRedraw) {								// Redraw current frame
			if (BurnDrvRedraw()) {
				BurnDrvFrame();						// No redraw function provided, advance one frame
			}
		} else {
			BurnDrvFrame();							// Run one frame and draw the screen
		}
	}
	else
	{
		printf("bDrvOkay != TRUE");
		return 1;
	}

	MemToSurf();									// Copy the memory buffer to the directdraw buffer for later blitting
	return 0;
}
// Run one frame and render the screen
static int Frame(bool bRedraw) // bRedraw = 0
{
	if (pVidImage == NULL) {
		return 1;
	}

	if (bDrvOkay) {
		if (bRedraw) { // Redraw current frame
			if (BurnDrvRedraw()) {
				BurnDrvFrame(); // No redraw function provided, advance one frame
			}
		} else {
			BurnDrvFrame(); // Run one frame and draw the screen
		}
	}

	return 0;
}