diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-09-09 22:13:09 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-09-09 22:16:16 +0800 |
commit | 654d218c29a89e90ab85458a817076aa5b426d54 (patch) | |
tree | e912e2a84ea9dbe18097f9b95c9f0da176e72755 /csrc/cards_ui.c | |
parent | 550996a885cf91842ca72031364b5b234566a477 (diff) | |
download | rich4-654d218c29a89e90ab85458a817076aa5b426d54.tar.xz |
cardProc: ps.rcPaint @ esp+8
Diffstat (limited to 'csrc/cards_ui.c')
-rw-r--r-- | csrc/cards_ui.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/csrc/cards_ui.c b/csrc/cards_ui.c index 1e3d026..8fbce48 100644 --- a/csrc/cards_ui.c +++ b/csrc/cards_ui.c @@ -73,7 +73,6 @@ void fcn_4542ce(sound_struct * a0, int a1) LRESULT CALLBACK cardProc(HWND hWnd, UINT message, WPARAM wp, LPARAM lp) // 0x4416f0 { PAINTSTRUCT ps; /* esp */ - RECT rect; /* esp+8 */ RECT rect2; /* esp+0x40 */ if (message >= 0x202) { @@ -106,9 +105,9 @@ LRESULT CALLBACK cardProc(HWND hWnd, UINT message, WPARAM wp, LPARAM lp) // 0x44 if (message >= 0xf) { if (message == 0xf) { BeginPaint(hWnd, &ps); - GetCursorPos_35d(&rect); /* fcn_4021f8.c */ - IDirectDrawSurface_BltFast(pddrawsf1, rect.left, rect.top, pddrawsf2, &rect, 0x10); - GetCursorPos_250(&rect); /* fcn_4021f8.c */ + GetCursorPos_35d(&ps.rcPaint); /* fcn_4021f8.c */ + IDirectDrawSurface_BltFast(pddrawsf1, ps.rcPaint.left, ps.rcPaint.top, pddrawsf2, &ps.rcPaint, 0x10); + GetCursorPos_250(&ps.rcPaint); /* fcn_4021f8.c */ EndPaint(hWnd, &ps); return 0; } |