Breakpoint will happen in case of writing at unknown memory location
[clinton/Virtual-Jaguar-Rx.git] / src / gui / mainwin.cpp
index 0bbf2df..2e6552c 100644 (file)
@@ -145,6 +145,8 @@ MainWin::MainWin(bool autoRun): running(true), powerButtonOn(false),
        //      setCentralWidget(mainWindowCentrale);\r
        //}\r
 \r
+       WriteLog("Window creation start\n");\r
+\r
        // video output\r
        videoWidget = new GLWidget(this);\r
        videoWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);\r
@@ -251,8 +253,8 @@ MainWin::MainWin(bool autoRun): running(true), powerButtonOn(false),
        connect(powerAct, SIGNAL(triggered()), this, SLOT(TogglePowerState()));\r
 \r
        QIcon pauseIcon;\r
-       pauseIcon.addFile(":/res/pause-off", QSize(), QIcon::Normal, QIcon::Off);\r
-       pauseIcon.addFile(":/res/pause-on", QSize(), QIcon::Normal, QIcon::On);\r
+       pauseIcon.addFile(":/res/pause-off.png", QSize(), QIcon::Normal, QIcon::Off);\r
+       pauseIcon.addFile(":/res/pause-on.png", QSize(), QIcon::Normal, QIcon::On);\r
        pauseAct = new QAction(pauseIcon, tr("Pause"), this);\r
        pauseAct->setStatusTip(tr("Toggles the running state"));\r
        pauseAct->setCheckable(true);\r
@@ -614,7 +616,11 @@ MainWin::MainWin(bool autoRun): running(true), powerButtonOn(false),
        // Do this in case original size isn't correct (mostly for the first-run case)\r
        ResizeMainWindow();\r
 \r
-       // Create our test pattern bitmaps\r
+       WriteLog("Window creation done\n");\r
+\r
+       // Create our test pattern NTSC bitmap\r
+       WriteLog("Test pattern 1 bitmap\n");\r
+\r
        QImage tempImg(":/res/test-pattern.jpg");\r
        QImage tempImgScaled = tempImg.scaled(VIRTUAL_SCREEN_WIDTH, VIRTUAL_SCREEN_HEIGHT_PAL, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);\r
 \r
@@ -629,7 +635,10 @@ MainWin::MainWin(bool autoRun): running(true), powerButtonOn(false),
                }\r
        }\r
 \r
-       QImage tempImg2(":/res/test-pattern-pal");\r
+       // Create our test pattern PAL bitmap\r
+       WriteLog("Test pattern 2 bitmap\n");\r
+\r
+       QImage tempImg2(":/res/test-pattern-pal.jpg");\r
        QImage tempImgScaled2 = tempImg2.scaled(VIRTUAL_SCREEN_WIDTH, VIRTUAL_SCREEN_HEIGHT_PAL, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);\r
 \r
        for(uint32_t y=0; y<VIRTUAL_SCREEN_HEIGHT_PAL; y++)\r
@@ -1762,6 +1771,8 @@ void MainWin::ReadSettings(void)
        vjs.p2KeyBindings[BUTTON_s] = settings.value("p2k_star", Qt::Key_Asterisk).toInt();\r
 #endif\r
 \r
+       WriteLog("Read setting = Done\n");\r
+\r
        ReadProfiles(&settings);\r
 }\r
 \r
@@ -1899,6 +1910,8 @@ void MainWin::ReadUISettings(void)
        }\r
 \r
        settings.endGroup();\r
+\r
+       WriteLog("Read UI setting = Done\n");\r
 }\r
 \r
 \r