summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-10-01 20:05:45 +0800
committerIru Cai <mytbk920423@gmail.com>2018-10-01 20:05:45 +0800
commit7e03990c30672179e4b7cc39b8b286ab8987e0d0 (patch)
treea7396a08f95f82428f8b9c223ab0c6b9c1d9a798
parentbc58f791a33784ffa25e6aa105ced8245fb91ac7 (diff)
downloadrich4-7e03990c30672179e4b7cc39b8b286ab8987e0d0.tar.xz
fcn_4563f5
-rw-r--r--csrc/cards_ui.c2
-rw-r--r--csrc/drawing.c5
-rw-r--r--csrc/main.c6
-rw-r--r--csrc/tools_ui.c4
4 files changed, 11 insertions, 6 deletions
diff --git a/csrc/cards_ui.c b/csrc/cards_ui.c
index 12028bb..123300d 100644
--- a/csrc/cards_ui.c
+++ b/csrc/cards_ui.c
@@ -129,7 +129,7 @@ void cards_ui()
esi = 1;
fcn_00441b0a(0, edi, current_player);
IDirectDrawSurface_Lock(pddrawsf2, NULL, &sfdesc1, 1, 0);
- fcn_004563f5(sfdesc1.lpSurface, edi+12, 14, 130);
+ fcn_4563f5(sfdesc1.lpSurface, edi+12, 14, 130);
IDirectDrawSurface_Unlock(pddrawsf2, NULL);
int cardid = register_wait_callback(cardProc, 0);
fcn_00451edb(ebp, 0, 0x8028);
diff --git a/csrc/drawing.c b/csrc/drawing.c
index 119c3db..430c27c 100644
--- a/csrc/drawing.c
+++ b/csrc/drawing.c
@@ -441,3 +441,8 @@ void move_animation(int obj, int x1, int y1, int x2, int y2, int T)
// 0x40ea4d
free(st0);
}
+
+void fcn_4563f5(uint16_t *a0, struct st *a1, int a2, int a3)
+{
+ fcn_00455b3a(640, 480, a0, a1, a2, a3);
+}
diff --git a/csrc/main.c b/csrc/main.c
index 3cee0c7..493eb2e 100644
--- a/csrc/main.c
+++ b/csrc/main.c
@@ -161,7 +161,7 @@ LRESULT CALLBACK entryCallback(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
break;
}
IDirectDrawSurface_Lock(pddrawsf2, NULL, &sfdesc1, 1, 0);
- fcn.004563f5(sfdesc1.lpSurface, dw_48a180 + 12, 0, 0);
+ fcn_4563f5(sfdesc1.lpSurface, dw_48a180 + 12, 0, 0);
IDirectDrawSurface_Unlock(pddrawsf2, NULL);
fcn.00402460(1);
InvalidateRect(hWnd, NULL, FALSE);
@@ -172,7 +172,7 @@ LRESULT CALLBACK entryCallback(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
options_ui(0);
sub.WINMM.dll_mciSendStringA_9cf(0);
IDirectDrawSurface_Lock(pddrawsf2, NULL, &sfdesc1, 1, 0);
- fcn.004563f5(sfdesc1.lpSurface, dw_48a180 + 12, 0, 0);
+ fcn_4563f5(sfdesc1.lpSurface, dw_48a180 + 12, 0, 0);
IDirectDrawSurface_Unlock(pddrawsf2, NULL);
fcn.00402460(1);
return 0;
@@ -190,7 +190,7 @@ LRESULT CALLBACK entryCallback(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
if (message == 0x401) {
dw_48a184 = -1;
IDirectDrawSurface_Lock(pddrawsf2, NULL, &sfdesc1, 1, 0);
- fcn.004563f5(sfdesc1.lpSurface, dw_48a180 + 12, 0, 0);
+ fcn_4563f5(sfdesc1.lpSurface, dw_48a180 + 12, 0, 0);
IDirectDrawSurface_Unlock(pddrawsf2, NULL);
InvalidateRect(hWnd, NULL, FALSE);
fcn.00402460(1);
diff --git a/csrc/tools_ui.c b/csrc/tools_ui.c
index 4b90950..a8eb903 100644
--- a/csrc/tools_ui.c
+++ b/csrc/tools_ui.c
@@ -149,13 +149,13 @@ void tools_ui()
ebx = 1;
IDirectDrawSurface_Lock(pddrawsf2, 0, &sfdesc1, 1, 0);
- fcn.004563f5(sfdesc1.lpSurface, edi + 0x18, 0xe, 0x82);
+ fcn_4563f5(sfdesc1.lpSurface, edi + 0x18, 0xe, 0x82);
IDirectDrawSurface_Unlock(pddrawsf2, NULL);
esi = register_wait_callback(toolsProc, 0);
IDirectDrawSurface_Lock(pddrawsf2, 0, &sfdesc1, 1, 0);
- fcn.004563f5(sfdesc1.lpSurface, dw_48c558, 0, 40);
+ fcn_4563f5(sfdesc1.lpSurface, dw_48c558, 0, 40);
IDirectDrawSurface_Unlock(pddrawsf2, NULL);
RECT r1 = { .left = 0, .top = 40, .right = 440, .bottom = 480 };