summaryrefslogtreecommitdiff
path: root/csrc
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-10-02 20:47:53 +0800
committerIru Cai <mytbk920423@gmail.com>2018-10-02 20:47:53 +0800
commit0a2a17db6530e704a7ba908da3aeb62b07248ec6 (patch)
treeb807c303777959aeaf9857d0a0b2548a458b0131 /csrc
parent37d44efbfb9d73102b9452a7e3a7aff7c7ab46af (diff)
downloadrich4-0a2a17db6530e704a7ba908da3aeb62b07248ec6.tar.xz
ui_entry, set some callback functions static
Diffstat (limited to 'csrc')
-rw-r--r--csrc/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/csrc/main.c b/csrc/main.c
index cd58500..8bea3ee 100644
--- a/csrc/main.c
+++ b/csrc/main.c
@@ -29,7 +29,7 @@ int price_index;
static struct spr_smp *data1; // 0x48a180
-LRESULT CALLBACK windowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
+static LRESULT CALLBACK windowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
if (message < 0x1c) {
if (message == WM_DESTROY) {
@@ -93,7 +93,7 @@ LRESULT CALLBACK windowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPara
}
}
-LRESULT CALLBACK entryCallback(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
+static LRESULT CALLBACK entryCallback(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
if (message >= 0x200) {
if (message == WM_MOUSEMOVE) {
@@ -210,7 +210,7 @@ LRESULT CALLBACK entryCallback(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
return DefWindowProcA(hWnd, message, wParam, lParam);
}
-int fcn_004029fd()
+static int ui_entry()
{
data1 = (struct spr_smp*)read_mkf(mkf_data, 1, NULL, NULL);
@@ -295,8 +295,8 @@ case_401de8_0:
game_map = 0;
dw_4990f0 = 0;
b_46cafc = 0;
- ret = fcn_004029fd();
- // jump table: 401cc8 401d08 401d2b 401d18 401cbf
+ ret = ui_entry();
+
L401cb3:
switch (ret) {
case 4:
@@ -323,7 +323,7 @@ switch_401cb8_case_1:
deinit_game();
DestroyWindow(gwindowHandle);
break;
- default:
+ default: /* also case 2 */
break;
}