void MainWin::SetFullScreen(bool state/*= true*/)
{
+#if 0
+ QPoint pos = settings.value("pos", QPoint(200, 200)).toPoint();
+ QSize size = settings.value("size", QSize(400, 400)).toSize();
+ resize(size);
+ move(pos);
+ settings.setValue("pos", pos());
+ settings.setValue("size", size());
+#endif
if (state)
{
+ mainWinPosition = pos();
+// mainWinSize = size();
menuBar()->hide();
statusBar()->hide();
showFullScreen();
statusBar()->show();
showNormal();
ResizeMainWindow();
+ move(mainWinPosition);
}
// For some reason, this doesn't work: If the emu is paused, toggling from
void MainWin::ReadSettings(void)
{
QSettings settings("Underground Software", "Virtual Jaguar");
- QPoint pos = settings.value("pos", QPoint(200, 200)).toPoint();
+ mainWinPosition = settings.value("pos", QPoint(200, 200)).toPoint();
QSize size = settings.value("size", QSize(400, 400)).toSize();
resize(size);
- move(pos);
- pos = settings.value("cartLoadPos", QPoint(200, 200)).toPoint();
+ move(mainWinPosition);
+ QPoint pos = settings.value("cartLoadPos", QPoint(200, 200)).toPoint();
filePickWin->move(pos);
zoomLevel = settings.value("zoom", 2).toInt();
public:
bool plzDontKillMyComputer;
private:
+ QPoint mainWinPosition;
+// QSize mainWinSize;
QMenu * fileMenu;
QMenu * helpMenu;
QMenu * debugMenu;
bool JaguarInterruptHandlerIsValid(uint32 i);
void JaguarDasm(uint32 offset, uint32 qt);
-void JaguarExecute(uint32 * backbuffer, bool render);
-//For testing the new system...
void JaguarExecuteNew(void);
// Exports from JAGUAR.CPP
#define ASSERT_LINE 1
#define CLEAR_LINE 0
-// Video stuff (should go in tom.h?)
-
-// NB: This virtual width is for PWIDTH = 4
-//#define VIRTUAL_SCREEN_WIDTH 320
-#define VIRTUAL_SCREEN_WIDTH 340
-#define VIRTUAL_SCREEN_HEIGHT_NTSC 240
-#define VIRTUAL_SCREEN_HEIGHT_PAL 256
-
//Temp debug stuff (will go away soon, so don't depend on these)
void DumpMainMemory(void);
//#define RIGHT_VISIBLE_HC (1488 - 32)
// Split the difference? (Seems to be OK for the most part...)
-// (-8 +8)*4 is for opening up the display by 16 pixels (may go to 20). Need to change VIRTUAL_SCREEN_WIDTH to match this as well (went from 320 to 336; this is 4 HCs per one of those pixels). <-- actually, not true. This is only place referenced.
+// (-10 +10)*4 is for opening up the display by 16 pixels (may go to 20). Need to change VIRTUAL_SCREEN_WIDTH to match this as well (went from 320 to 340; this is 4 HCs per one of those pixels).
#define LEFT_VISIBLE_HC (208 - 16 - (10 * 4))
//#define RIGHT_VISIBLE_HC (1488 - 16 + (10 * 4))
#define RIGHT_VISIBLE_HC (LEFT_VISIBLE_HC + (VIRTUAL_SCREEN_WIDTH * 4))
#define VIDEO_MODE_16BPP_DIRECT 2
#define VIDEO_MODE_16BPP_RGB 3
+// Virtual screen size stuff
+
+// NB: This virtual width is for PWIDTH = 4
+//#define VIRTUAL_SCREEN_WIDTH 320
+#define VIRTUAL_SCREEN_WIDTH 340
+#define VIRTUAL_SCREEN_HEIGHT_NTSC 240
+#define VIRTUAL_SCREEN_HEIGHT_PAL 256
+
// 68000 Interrupt bit positions (enabled at $F000E0)
enum { IRQ_VIDEO = 0, IRQ_GPU, IRQ_OPFLAG, IRQ_TIMER, IRQ_DSP };