diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-10-01 23:52:39 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-10-01 23:52:39 +0800 |
commit | 521394f94ab4789df32fc92b5af69249de36708d (patch) | |
tree | bfbe7b5c40cfc70a4201b4b76d80c0362f98ddf5 | |
parent | 43f9a5e17bb9d178ac8eefe4a5729dbed14ca71e (diff) | |
download | rich4-521394f94ab4789df32fc92b5af69249de36708d.tar.xz |
mpos is the center position
-rw-r--r-- | csrc/main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/csrc/main.c b/csrc/main.c index 1c9e473..d11896a 100644 --- a/csrc/main.c +++ b/csrc/main.c @@ -15,7 +15,7 @@ RECT g_rect; char mid_status[7]; // 0x46cb00 typedef struct { int16_t x; int16_t y } pos_t; -pos_t mpos[5] = { // 0x46cb28 +static pos_t mpos[5] = { // central position of the buttons @0x46cb28 {190, 380}, // start {328, 380}, // load {468, 378}, // options @@ -216,10 +216,9 @@ int fcn_004029fd() { data1 = (struct spr_smp*)read_mkf(mkf_data, 1, NULL, NULL); - for (int i = 0; i < 5; i++) { // i in ebx - int t1 = mpos[i].x; - int t2 = mpos[i].y; - fcn_4562a5(&data1->chunk_tab[0], &data1->chunk_tab[i * 2 + 1], t1, t2); + for (int i = 0; i < 5; i++) { + fcn_4562a5(&data1->chunk_tab[0], &data1->chunk_tab[i * 2 + 1], + mpos[i].x, mpos[i].y); } create_some_font(0x10, 0xf0f0f0, 0x101010, 3, 1); |