summaryrefslogtreecommitdiff
path: root/win32/gui/WndMain.c
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-03-01 23:44:31 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-03-01 23:44:31 +0000
commit32c1c8487ef4a53feb18758fcf598fc42755c898 (patch)
tree68ec22d16eaa7d02b752b963c8f4b377f2d82f14 /win32/gui/WndMain.c
parentbc0941498884c491629ca8ce1f11f135d799d4cf (diff)
downloadpcsxr-32c1c8487ef4a53feb18758fcf598fc42755c898.tar.gz
CPU -> Hide cursor. (Windows);
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@83295 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'win32/gui/WndMain.c')
-rwxr-xr-xwin32/gui/WndMain.c34
1 files changed, 24 insertions, 10 deletions
diff --git a/win32/gui/WndMain.c b/win32/gui/WndMain.c
index 171b9d9a..04bfbcd5 100755
--- a/win32/gui/WndMain.c
+++ b/win32/gui/WndMain.c
@@ -260,9 +260,12 @@ void RestoreWindow() {
AccBreak = 1;
DestroyWindow(gApp.hWnd);
CreateMainWindow(SW_SHOWNORMAL);
- ShowCursor(TRUE);
- SetCursor(LoadCursor(gApp.hInstance, IDC_ARROW));
- ShowCursor(TRUE);
+
+ if(Config.HideCursor)
+ ShowCursor(TRUE);
+
+ //SetCursor(LoadCursor(gApp.hInstance, IDC_ARROW));
+ //ShowCursor(TRUE);
if (!UseGui) PostMessage(gApp.hWnd, WM_COMMAND, ID_FILE_EXIT, 0);
}
@@ -479,7 +482,8 @@ LRESULT WINAPI MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) {
SysMessage(_("Could not load CD-ROM!"));
return TRUE;
}
- ShowCursor(FALSE);
+ if(Config.HideCursor)
+ ShowCursor(FALSE);
Running = 1;
psxCpu->Execute();
return TRUE;
@@ -497,7 +501,8 @@ LRESULT WINAPI MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) {
RestoreWindow();
return TRUE;
}
- ShowCursor(FALSE);
+ if(Config.HideCursor)
+ ShowCursor(FALSE);
SysReset();
CdromId[0] = '\0';
CdromLabel[0] = '\0';
@@ -531,7 +536,8 @@ LRESULT WINAPI MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) {
SysMessage(_("Could not load CD-ROM!"));
return TRUE;
}
- ShowCursor(FALSE);
+ if(Config.HideCursor)
+ ShowCursor(FALSE);
Running = 1;
psxCpu->Execute();
return TRUE;
@@ -602,7 +608,8 @@ LRESULT WINAPI MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) {
RestoreWindow();
return TRUE;
}
- ShowCursor(FALSE);
+ if(Config.HideCursor)
+ ShowCursor(FALSE);
Running = 1;
psxCpu->Execute();
return TRUE;
@@ -610,7 +617,8 @@ LRESULT WINAPI MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) {
case ID_EMULATOR_RUN:
SetMenu(hWnd, NULL);
OpenPlugins(hWnd);
- ShowCursor(FALSE);
+ if(Config.HideCursor)
+ ShowCursor(FALSE);
Running = 1;
CheatSearchBackupMemory();
psxCpu->Execute();
@@ -625,7 +633,8 @@ LRESULT WINAPI MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) {
SysReset();
LoadCdrom();
- ShowCursor(FALSE);
+ if(Config.HideCursor)
+ ShowCursor(FALSE);
Running = 1;
psxCpu->Execute();
return TRUE;
@@ -647,7 +656,8 @@ LRESULT WINAPI MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) {
RestoreWindow();
return TRUE;
}
- ShowCursor(FALSE);
+ if(Config.HideCursor)
+ ShowCursor(FALSE);
Running = 1;
SetCdOpenCaseTime(time(NULL) + 2);
CheatSearchBackupMemory();
@@ -1327,6 +1337,7 @@ BOOL CALLBACK ConfigureCpuDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lPar
Button_SetText(GetDlgItem(hW,IDC_RCNTFIX), _("Parasite Eve 2, Vandal Hearts 1/2 Fix"));
Button_SetText(GetDlgItem(hW,IDC_VSYNCWA), _("InuYasha Sengoku Battle Fix"));
Button_SetText(GetDlgItem(hW,IDC_WIDESCREEN), _("Widescreen (GTE Hack)"));
+ Button_SetText(GetDlgItem(hW,IDC_HIDECURSOR), _("Hide cursor"));
Static_SetText(GetDlgItem(hW,IDC_MISCOPT), _("Options"));
Static_SetText(GetDlgItem(hW,IDC_SELPSX), _("Psx System Type"));
@@ -1344,6 +1355,7 @@ BOOL CALLBACK ConfigureCpuDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lPar
Button_SetCheck(GetDlgItem(hW,IDC_RCNTFIX), Config.RCntFix);
Button_SetCheck(GetDlgItem(hW,IDC_VSYNCWA), Config.VSyncWA);
Button_SetCheck(GetDlgItem(hW,IDC_WIDESCREEN), Config.Widescreen);
+ Button_SetCheck(GetDlgItem(hW,IDC_HIDECURSOR), Config.HideCursor);
ComboBox_AddString(GetDlgItem(hW,IDC_PSXTYPES), "NTSC");
ComboBox_AddString(GetDlgItem(hW,IDC_PSXTYPES), "PAL");
ComboBox_SetCurSel(GetDlgItem(hW,IDC_PSXTYPES),Config.PsxType);
@@ -1388,6 +1400,7 @@ BOOL CALLBACK ConfigureCpuDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lPar
Config.RCntFix = Button_GetCheck(GetDlgItem(hW,IDC_RCNTFIX));
Config.VSyncWA = Button_GetCheck(GetDlgItem(hW,IDC_VSYNCWA));
Config.Widescreen = Button_GetCheck(GetDlgItem(hW,IDC_WIDESCREEN));
+ Config.HideCursor = Button_GetCheck(GetDlgItem(hW,IDC_HIDECURSOR));
tmp = Config.Debug;
Config.Debug = Button_GetCheck(GetDlgItem(hW,IDC_DEBUG));
if (tmp != Config.Debug) {
@@ -1665,6 +1678,7 @@ void CreateMainMenu() {
#ifdef ENABLE_NLS
ADDSUBMENUS(0, 1, _("&Language"));
+ // wtf?
if (langs != langs) free(langs);
langs = (_langs*)malloc(sizeof(_langs));
strcpy(langs[0].lang, "English");