From 642ce3a11586a2adc5f14c4fffd79bdb60e31788 Mon Sep 17 00:00:00 2001 From: luigi__ Date: Mon, 27 Jul 2009 18:35:48 +0000 Subject: [PATCH] Win32: fix a bug which would cause recent roms menu to accept only 9 recent roms instead of 10. --- desmume/src/windows/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 1ebef450e..f41acbec8 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -543,7 +543,7 @@ void UpdateRecentRoms(const char* filename) RecentRoms.insert(RecentRoms.begin(), newROM); //Add to the array //If over the max, we have too many, so remove the last entry - if (RecentRoms.size() == MAX_RECENT_ROMS) + if (RecentRoms.size() > MAX_RECENT_ROMS) RecentRoms.pop_back(); //Debug @@ -923,7 +923,7 @@ void CheckMessages() } } } - +int fps; DWORD WINAPI run() { u32 cycles = 0; @@ -938,13 +938,13 @@ DWORD WINAPI run() u64 diffticks=0; u32 framecount=0; u64 onesecondticks=0; - int fps=0; + //int fps=0; int fpsframecount=0; u64 fpsticks=0; HWND hwnd = MainWindow->getHWnd(); InitSpeedThrottle(); - +fps=0; osd->setRotate(video.rotation); if (DirectDrawCreateEx(NULL, (LPVOID*)&lpDDraw, IID_IDirectDraw7, NULL) != DD_OK)