mirror of
https://github.com/pj64team/Project64-Legacy.git
synced 2026-04-02 12:45:18 +00:00
Disabled URL on Image Click on About dialog
This commit is contained in:
10
main2.cpp
10
main2.cpp
@ -195,10 +195,12 @@ LRESULT CALLBACK AboutBoxProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPara
|
||||
mouse_click.x += dialog.left;
|
||||
mouse_click.y += dialog.top;
|
||||
|
||||
GetWindowRect(GetDlgItem(hDlg, IDB_PJ64LOGO), &image);
|
||||
// Disabled URL on Image Click - Gent (13-09.2021)
|
||||
|
||||
// GetWindowRect(GetDlgItem(hDlg, IDB_PJ64LOGO), &image);
|
||||
|
||||
if (PtInRect(&image, mouse_click))
|
||||
ShellExecute(NULL, "open", "http://project64.emulation64.com", NULL, NULL, SW_SHOWMAXIMIZED);
|
||||
// if (PtInRect(&image, mouse_click))
|
||||
// ShellExecute(NULL, "open", "http://project64.emulation64.com", NULL, NULL, SW_SHOWMAXIMIZED);
|
||||
|
||||
break;
|
||||
}
|
||||
@ -427,4 +429,4 @@ void DrawBox(HDC dc, RECT rect) {
|
||||
void AdjustRectangle(RECT *rect) {
|
||||
rect->left += 5;
|
||||
rect->right -= 5;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user