Mercurial > mm7
diff UI/UIPopup.cpp @ 1802:633f81bb3ae7
HWND -> class OSWindow
author | Nomad |
---|---|
date | Mon, 07 Oct 2013 11:52:33 +0200 |
parents | 421c29d4ab3e |
children | 303a56458f7b 211dfe2d8db1 |
line wrap: on
line diff
--- a/UI/UIPopup.cpp Tue Oct 01 06:19:58 2013 +0200 +++ b/UI/UIPopup.cpp Mon Oct 07 11:52:33 2013 +0200 @@ -1284,7 +1284,7 @@ // 507B00: using guessed type int dword_507B00_spell_info_to_draw_in_popup; //----- (00416D62) -------------------------------------------------------- -void sub_416D62_ShowPopupWindow_MonsterRecord_ItemInfo_etcsub_416D62(Vec2_int_ *_this) +void UI_OnMouseRightClick(Vec2_int_ *_this) { int v5; // esi@62 GUIButton *pButton; // esi@84 @@ -1309,7 +1309,7 @@ if ( pRenderer->bWindowMode ) { GetCursorPos(&Point); - ScreenToClient(hWnd, &Point); + ScreenToClient(window->GetApiHandle(), &Point); if ( Point.x < 1 || Point.y < 1 || Point.x > 638 || Point.y > 478 ) { back_to_game();