Win32 - RamWatch - main window will load the watch file now

This commit is contained in:
adelikat 2009-05-07 16:47:53 +00:00
parent 2915400b9b
commit 4485db61eb
2 changed files with 2 additions and 5 deletions

View File

@ -1369,7 +1369,8 @@ BOOL LoadROM(char * filename, const char *cflash_disk_image)
UpdateRecentRoms(filename);
osd->setRotate(GPU_rotation);
if (AutoRWLoad) //Open Ram Watch if its auto-load setting is checked
RamWatchHWnd = CreateDialog(hAppInst, MAKEINTRESOURCE(IDD_RAMWATCH), MainWindow->getHWnd(), (DLGPROC) RamWatchProc);
OpenRWRecentFile(0);
RamWatchHWnd = CreateDialog(hAppInst, MAKEINTRESOURCE(IDD_RAMWATCH), MainWindow->getHWnd(), (DLGPROC) RamWatchProc);
return TRUE;
}

View File

@ -940,11 +940,7 @@ LRESULT CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
// due to some bug in windows, the arrow button width from the resource gets ignored, so we have to set it here
SetWindowPos(GetDlgItem(hDlg,ID_WATCHES_UPDOWN), 0,0,0, 30,60, SWP_NOMOVE);
if (AutoRWLoad) OpenRWRecentFile(0);
Update_RAM_Watch();
DragAcceptFiles(hDlg, TRUE);
return true;