summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-10-02 17:19:01 +0800
committerIru Cai <mytbk920423@gmail.com>2018-10-02 17:19:01 +0800
commit646a41e0edd22c254be4939c9fa4e54b29fdb502 (patch)
treee45272d18e3f39b07b1fb138082e4481aa5f4e78
parente1e07917b317be0dab9beb42eb01205b62cfdd01 (diff)
downloadrich4-646a41e0edd22c254be4939c9fa4e54b29fdb502.tar.xz
overlay_fullscreen
-rw-r--r--csrc/cards_ui.c2
-rw-r--r--csrc/drawing.c2
-rw-r--r--csrc/main.c6
-rw-r--r--csrc/tools_ui.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/csrc/cards_ui.c b/csrc/cards_ui.c
index 123300d..de3dfd7 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_4563f5(sfdesc1.lpSurface, edi+12, 14, 130);
+ overlay_fullscreen(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 2cd9f81..e122baa 100644
--- a/csrc/drawing.c
+++ b/csrc/drawing.c
@@ -437,7 +437,7 @@ void move_animation(int obj, int x1, int y1, int x2, int y2, int T)
free(st0);
}
-int fcn_4563f5(uint16_t *a0, struct graph_st *a1, int a2, int a3)
+int overlay_fullscreen(uint16_t *a0, struct graph_st *a1, int a2, int a3)
{
return graph_overlay0(640, 480, a0, a1, a2, a3);
}
diff --git a/csrc/main.c b/csrc/main.c
index 52d3d7b..e046484 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_4563f5(sfdesc1.lpSurface, &data1->chunk_tab[0], 0, 0);
+ overlay_fullscreen(sfdesc1.lpSurface, &data1->chunk_tab[0], 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_4563f5(sfdesc1.lpSurface, &data1->chunk_tab[0], 0, 0);
+ overlay_fullscreen(sfdesc1.lpSurface, &data1->chunk_tab[0], 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_4563f5(sfdesc1.lpSurface, &data1->chunk_tab[0], 0, 0);
+ overlay_fullscreen(sfdesc1.lpSurface, &data1->chunk_tab[0], 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 f42778c..b9a5b86 100644
--- a/csrc/tools_ui.c
+++ b/csrc/tools_ui.c
@@ -150,13 +150,13 @@ void tools_ui()
ebx = 1;
IDirectDrawSurface_Lock(pddrawsf2, 0, &sfdesc1, 1, 0);
- fcn_4563f5(sfdesc1.lpSurface, edi + 0x18, 0xe, 0x82);
+ overlay_fullscreen(sfdesc1.lpSurface, edi + 0x18, 0xe, 0x82);
IDirectDrawSurface_Unlock(pddrawsf2, NULL);
esi = register_wait_callback(toolsProc, 0);
IDirectDrawSurface_Lock(pddrawsf2, 0, &sfdesc1, 1, 0);
- fcn_4563f5(sfdesc1.lpSurface, dw_48c558, 0, 40);
+ overlay_fullscreen(sfdesc1.lpSurface, dw_48c558, 0, 40);
IDirectDrawSurface_Unlock(pddrawsf2, NULL);
RECT r1 = { .left = 0, .top = 40, .right = 440, .bottom = 480 };