SET32(jaguarMainRAM, 0, 0x00200000); // Set top of stack...
+//Let's try this...
+/*if*/ JaguarLoadFile("./software/Rayman (World).j64");
+
//This is crappy!!! !!! FIX !!!
//Is this even needed any more? Hmm. Maybe. Dunno.
//Seems like it is... But then again, maybe not. Have to test it to see.
WriteLog("GUI: Resetting Jaguar...\n");
JaguarReset();
-
}
void MainWin::closeEvent(QCloseEvent * event)
#else
JaguarExecuteNew();
// memcpy(videoWidget->buffer, backbuffer, videoWidget->rasterHeight * videoWidget->rasterWidth);
- memcpy(videoWidget->buffer, backbuffer, videoWidget->rasterHeight * videoWidget->textureWidth);
+ memcpy(videoWidget->buffer, backbuffer, videoWidget->rasterHeight * videoWidget->textureWidth * sizeof(uint32_t));
// memcpy(surface->pixels, backbuffer, TOMGetVideoModeWidth() * TOMGetVideoModeHeight() * 4);
#endif
}
// memcpy(videoWidget->buffer, backbuffer, videoWidget->rasterHeight * videoWidget->rasterWidth);
- memcpy(videoWidget->buffer, backbuffer, videoWidget->rasterHeight * videoWidget->textureWidth);
+ memcpy(videoWidget->buffer, backbuffer, videoWidget->rasterHeight * videoWidget->textureWidth * sizeof(uint32_t));
#endif
videoWidget->updateGL();
//int16 * TOMBackbuffer;
uint32 * TOMBackbuffer;
-uint32 tomDeviceWidth;
-
static const char * videoMode_to_str[8] =
{ "16 BPP CRY", "24 BPP RGB", "16 BPP DIRECT", "16 BPP RGB",
"Mixed mode", "24 BPP RGB", "16 BPP DIRECT", "16 BPP RGB" };
//
// Process a single scanline
//
+uint32 tomDeviceWidth;//kludge
void TOMExecScanline(uint16 scanline, bool render)
{
bool inActiveDisplayArea = true;
// If outside of VDB & VDE, then display the border color
uint32 * currentLineBuffer = TOMBackbuffer;
uint8 g = tomRam8[BORD1], r = tomRam8[BORD1 + 1], b = tomRam8[BORD2 + 1];
- uint32 pixel = 0xFF000000 | (b << 16) | (g << 8) | r;
+//Hm. uint32 pixel = 0xFF000000 | (b << 16) | (g << 8) | r;
+ uint32 pixel = 0x000000FF | (r << 24) | (g << 16) | (r << 8);
for(uint32 i=0; i<tomWidth; i++)
*currentLineBuffer++ = pixel;